mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
mobile theme can be loaded with ?mobile parameter as well
This commit is contained in:
parent
dc856902fe
commit
a5cc36ea64
1 changed files with 1 additions and 3 deletions
|
|
@ -17,12 +17,10 @@ if (!is_int(Config::get('firstdayofweek')) || Config::get('firstdayofweek')<0 ||
|
|||
Config::set('firstdayofweek', 1);
|
||||
}
|
||||
|
||||
if (isset($_GET['pda'])) {
|
||||
if ( isset($_GET['mobile']) || isset($_GET['pda'])) {
|
||||
Config::set('mobile', 1);
|
||||
}
|
||||
|
||||
define('TEMPLATEPATH', MTTPATH. 'themes/'. Config::get('template'). '/');
|
||||
|
||||
require(TEMPLATEPATH. 'index.php');
|
||||
|
||||
?>
|
||||
Loading…
Reference in a new issue