class MobileProfilePlugin extends WAP20Plugin
{
- public $DTD = null;
+ public $DTD = null;
public $serveMobile = false;
function __construct($DTD='http://www.wapforum.org/DTD/xhtml-mobile10.dtd')
// If they are okay with MP, and the site has a mobile server,
// redirect there
if ($this->serveMobile &&
- common_config('site', 'mobileserver') !== false) {
+ common_config('site', 'mobileserver') !== false &&
+ common_config('site', 'mobileserver') !=
+ common_config('site', 'server')) {
header("Location: ".common_config('site', 'mobileserver'));
exit();
function onStartShowAside($action)
{
-
+ if ($this->serveMobile) {
+ return false;
+ }
}