Ejemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     if (self::$isWikiaMobile === null) {
         self::$isWikiaMobile = $this->app->checkSkin('wikiamobile');
     }
     if (!self::$isWikiaMobile && empty($this->app->wg->RTEParserEnabled)) {
         self::$enabled = true;
     }
 }
Ejemplo n.º 2
0
 public static function isEnabled()
 {
     if (is_null(self::$enabled)) {
         $app = F::app();
         self::$enabled = false;
         if (self::$isWikiaMobile === null) {
             self::$isWikiaMobile = $app->checkSkin('wikiamobile');
         }
         if (!self::$isWikiaMobile && empty($app->wg->RTEParserEnabled)) {
             self::$enabled = true;
         }
     }
     return self::$enabled;
 }