We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db684c commit 632e6ebCopy full SHA for 632e6eb
1 file changed
vendor/traq/controllers/app_controller.php
@@ -63,6 +63,13 @@ public function __construct()
63
// Set DB connection
64
$this->db = Database::connection();
65
66
+ $dbVersion = settings('db_version');
67
+ if ($dbVersion < TRAQ_DB_VER) {
68
+ // Database version is out of date, redirect to upgrader
69
+ header("Location: " . Request::base('install/upgrade.php'));
70
+ exit;
71
+ }
72
+
73
// Set the theme
74
View::$theme = settings('theme');
75
View::$inherit_from = APPPATH . "/views/default";
0 commit comments