diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-16 05:07:55 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-16 05:07:55 +0400 |
commit | f3a78c3a54a92235f23e2b40138e10b5c386abce (patch) | |
tree | ef30ca919f01ee23d1a74de3c6ebf43d9f0ea6fd /core/Updater.php | |
parent | b0b8081d937f0504efc00b2baa709121d71591e2 (diff) |
Adding 2.0-a17 update file to delete old plugin folders
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Updater.php b/core/Updater.php index 1ccdb78e18..a058eb03c1 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -152,7 +152,7 @@ class Updater * Update the named component * * @param string $componentName 'core', or plugin name - * @throws \Exception|Updater_UpdateErrorException + * @throws \Exception|UpdaterErrorException * @return array of warning strings if applicable */ public function update($componentName) @@ -169,7 +169,7 @@ class Updater } self::recordComponentSuccessfullyUpdated($componentName, $fileVersion); - } catch (Updater_UpdateErrorException $e) { + } catch (UpdaterErrorException $e) { throw $e; } catch (\Exception $e) { $warningMessages[] = $e->getMessage(); @@ -286,7 +286,7 @@ class Updater * * @param string $file Update script filename * @param array $sqlarray An array of SQL queries to be executed - * @throws Updater_UpdateErrorException + * @throws UpdaterErrorException */ static function updateDatabase($file, $sqlarray) { @@ -298,7 +298,7 @@ class Updater || !Db::get()->isErrNo($e, $ignoreError) ) { $message = $file . ":\nError trying to execute the query '" . $update . "'.\nThe error was: " . $e->getMessage(); - throw new Updater_UpdateErrorException($message); + throw new UpdaterErrorException($message); } } } @@ -311,6 +311,6 @@ class Updater * @package Piwik * @subpackage Updater */ -class Updater_UpdateErrorException extends \Exception +class UpdaterErrorException extends \Exception { } |