diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-10 16:14:32 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-10 16:14:32 +0300 |
commit | 6e483868d4bc62719dad5b2ed44f870e18dfd72e (patch) | |
tree | 96eb0f78ce8227f287d0baa14fbb83588585312b /core/Updater.php | |
parent | c54b3b7738f9e8113b3c0d86229420b076bc8494 (diff) |
Move throwIfPiwikVersionIsOlderThanDBSchema that is only used in FrontController to FrontController.
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/Updater.php b/core/Updater.php index a98ef24f73..dad7116177 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -116,27 +116,6 @@ class Updater } /** - * This method ensures that Piwik Platform cannot be running when using a NEWER database. - * - * TODO: can I move this to FrontController & deprecate this? - */ - public function throwIfPiwikVersionIsOlderThanDBSchema() - { - $dbSchemaVersion = $this->getCurrentComponentVersion('core'); - $current = Version::VERSION; - if(-1 === version_compare($current, $dbSchemaVersion)) { - $messages = array( - Piwik::translate('General_ExceptionDatabaseVersionNewerThanCodebase', array($current, $dbSchemaVersion)), - Piwik::translate('General_ExceptionDatabaseVersionNewerThanCodebaseWait'), - // we cannot fill in the Super User emails as we are failing before Authentication was ready - Piwik::translate('General_ExceptionContactSupportGeneric', array('', '')) - ); - throw new DatabaseSchemaIsNewerThanCodebaseException(implode(" ", $messages)); - } - } - - - /** * Returns a list of components (core | plugin) that need to run through the upgrade process. * * @param string[] $componentsToCheck An array mapping component names to the latest locally available version. |