From a5cc36ea643587ae8f06206632d4c49c7bc19f35 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Wed, 2 Sep 2020 16:52:25 +0300 Subject: [PATCH] mobile theme can be loaded with ?mobile parameter as well --- src/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.php b/src/index.php index f622e20..2fae7a5 100644 --- a/src/index.php +++ b/src/index.php @@ -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'); - -?> \ No newline at end of file