mobile theme can be loaded with ?mobile parameter as well

This commit is contained in:
Max Pozdeev 2020-09-02 16:52:25 +03:00
parent dc856902fe
commit a5cc36ea64

View file

@ -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');
?>