diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-21 22:33:57 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-21 22:33:57 -0400 |
commit | a750b8ab2a0cb715da6fd9025a7ec8375db68a4d (patch) | |
tree | 5d5cdac1830336baf93b057e93cd2c1c56f405de /common.php | |
parent | 57e40671af56ae49eda467d9d5949bf9707020ee (diff) |
Add categories for projects and tasks
Diffstat (limited to 'common.php')
-rw-r--r-- | common.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |