Made extension compatible with MobileFrontend extension.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / wrmap.body.php
index d5afd97ea4f7cf2c0fed13949e48a13c565a6cac..1d109e6ae1bc527ac7c2fc4adfc33f927d6fba69 100644 (file)
@@ -286,6 +286,12 @@ class WrBaseMap {
                $div->appendElement('div', array('style' => 'height: 0px; display:none;'))->appendText($json_string);
                return array($doc->saveHTML($div), 'markerType' => 'nowiki');
        }
+
+
+       public static function onEnableMobileModules($out, $mode) {
+               $out->addModules('ext.wrmap.mobile');
+               return true;
+       }
 }