* If client device is mobile and version is pro, set the default view as mthml.

This commit is contained in:
chenfeiCF
2017-03-28 09:35:04 +08:00
parent 65cffaf22b
commit 2bed9e03e9
+3
View File
@@ -59,6 +59,9 @@ if(file_exists('install.php') or file_exists('upgrade.php'))
}
}
/* If client device is mobile and version is pro, set the default view as mthml. */
if($app->clientDevice == 'mobile' and strpos($config->installedVersion, 'pro') === 0 and $config->default->view == 'html') $config->default->view = 'mhtml';
$app->parseRequest();
$common->checkPriv();
$app->loadModule();