Add categories for projects and tasks

This commit is contained in:
Frédéric Guillot
2014-05-21 22:33:57 -04:00
parent 57e40671af
commit a750b8ab2a
39 changed files with 815 additions and 44 deletions

View File

@@ -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