/**
  * Disable mobile frontend
  *
  * @return bool
  */
 private static function disable()
 {
     self::$enabled = false;
     return false;
 }
예제 #2
0
 /**
  * Perform very early setup
  *
  * @return bool
  */
 public static function setup()
 {
     if (!MobileFrontend2_Detection::isEnabled()) {
         return true;
     }
     global $wgMobileFrontend2Logo, $wgExtensionAssetsPath;
     // We need a sane default and $wgExtensionAssetsPath isn't ready until
     // after LocalSettings
     if ($wgMobileFrontend2Logo === null) {
         $wgMobileFrontend2Logo = $wgExtensionAssetsPath . '/MobileFrontend2/modules/ext.mobileFrontend2/images/mw.png';
     }
 }