diff --git a/src/common.php b/src/common.php index 2a17453..fdace77 100644 --- a/src/common.php +++ b/src/common.php @@ -66,6 +66,7 @@ class Config 'mysql.db' => array('default'=>'mytinytodo', 'type'=>'s'), 'mysql.user' => array('default'=>'user', 'type'=>'s'), 'mysql.password' => array('default'=>'', 'type'=>'s'), + 'title' => array('default'=>'', 'type'=>'s'), 'lang' => array('default'=>'en', 'type'=>'s'), 'password' => array('default'=>'', 'type'=>'s'), 'allowread' => array('default'=>0, 'type'=>'i'), diff --git a/src/index.php b/src/index.php index e888f19..6ab3a49 100644 --- a/src/index.php +++ b/src/index.php @@ -23,6 +23,10 @@ else $duedateformat = 'yy-mm-dd'; if(!isset($config['firstdayofweek']) || !is_int($config['firstdayofweek']) || $config['firstdayofweek']<0 || $config['firstdayofweek']>6) $config['firstdayofweek'] = 1; +if(isset($config['title']) && $config['title'] != '') $title = htmlarray($config['title']); +else $title = $lang->get('My Tiny Todolist'); + + function __($s) { global $lang; @@ -33,7 +37,7 @@ function __($s)
-
| Title: (specify if you want to change default title) |
++ |
|---|---|
| Language: |