Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-04-07 05:45:46 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-04-07 05:46:49 +0300
commit90372750b039ce0b2150d4d6b1279fecbb245465 (patch)
tree58e4f982758c017281a78b88567c65d5442b2f00 /core/FrontController.php
parent91ae0a456047582cc277577b7c533275b0b49e26 (diff)
Ignore the error "the DB is in a newer version" when development mode is enabled
That happens a lot when switching branches.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index f9dd3259cb..e697985f1e 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -562,6 +562,11 @@ class FrontController extends Singleton
*/
private function throwIfPiwikVersionIsOlderThanDBSchema()
{
+ // When developing this situation happens often when switching branches
+ if (Development::isEnabled()) {
+ return;
+ }
+
$updater = new Updater();
$dbSchemaVersion = $updater->getCurrentComponentVersion('core');