| @@ 116-119 (lines=4) @@ | ||
| 113 | if ($quiet) { |
|
| 114 | // hide include errors as well as any exceptions that might happen |
|
| 115 | try { |
|
| 116 | if (!@self::includeCode("$upgrade_path/$upgrade")) { |
|
| 117 | $success = false; |
|
| 118 | error_log("Could not include $upgrade_path/$upgrade"); |
|
| 119 | } |
|
| 120 | } catch (\Exception $e) { |
|
| 121 | $success = false; |
|
| 122 | error_log($e->getMessage()); |
|
| @@ 124-129 (lines=6) @@ | ||
| 121 | $success = false; |
|
| 122 | error_log($e->getMessage()); |
|
| 123 | } |
|
| 124 | } else { |
|
| 125 | if (!self::includeCode("$upgrade_path/$upgrade")) { |
|
| 126 | $success = false; |
|
| 127 | error_log("Could not include $upgrade_path/$upgrade"); |
|
| 128 | } |
|
| 129 | } |
|
| 130 | ||
| 131 | if ($success) { |
|
| 132 | // don't set the version to a lower number in instances where an upgrade |
|