Ejemplo n.º 1
0
 /**
  * Detects options based on user preferences
  */
 public static function detect()
 {
     $request = RequestContext::getMain()->getRequest();
     self::$hideSearch = $request->getBool('hidesearch');
     self::$hideLogo = $request->getBool('hidelogo');
     // TODO: Previously this was lumped into hidelogo. Notify mobile team
     self::$hideFooter = $request->getBool('hidefooter');
     // TODO: Hook for Wikimedia
 }