summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'common.php')
-rw-r--r--common.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.php b/common.php
index 75b92df4..70b18a51 100644
--- a/common.php
+++ b/common.php
@@ -6,7 +6,7 @@ require __DIR__.'/core/translator.php';
$registry = new Core\Registry;
-$registry->db_version = 15;
+$registry->db_version = 16;
$registry->db = function() use ($registry) {
require __DIR__.'/vendor/PicoDb/Database.php';
@@ -110,6 +110,11 @@ $registry->google = function() use ($registry) {
return new \Model\Google($registry->shared('db'), $registry->shared('event'));
};
+$registry->category = function() use ($registry) {
+ require_once __DIR__.'/models/category.php';
+ return new \Model\Category($registry->shared('db'), $registry->shared('event'));
+};
+
if (file_exists('config.php')) require 'config.php';
// Board refresh frequency in seconds for the public board view