/**
  * Removes content inappropriate for mobile devices
  * @param bool $removeDefaults Whether default settings at $wgMFRemovableClasses should be used
  * @return array
  */
 public function filterContent($removeDefaults = true)
 {
     $ctx = MobileContext::singleton();
     $mfRemovableClasses = $ctx->getMFConfig()->get('MFRemovableClasses');
     if ($removeDefaults) {
         $this->remove($mfRemovableClasses['base']);
         if ($ctx->isBetaGroupMember()) {
             $this->remove($mfRemovableClasses['beta']);
         }
     }
     if ($this->removeMedia) {
         $this->doRemoveImages();
     }
     return parent::filterContent();
 }
 /**
  * Removes content inappropriate for mobile devices
  * @param bool $removeDefaults Whether default settings at $wgMFRemovableClasses should be used
  * @return array
  */
 public function filterContent($removeDefaults = true)
 {
     $mfRemovableClasses = MobileContext::singleton()->getMFConfig()->get('MFRemovableClasses');
     if ($removeDefaults) {
         $this->remove($mfRemovableClasses['base']);
         $this->remove($mfRemovableClasses['HTML']);
         // @todo: Migrate this variable
     }
     if ($this->removeMedia) {
         $this->doRemoveImages();
     }
     return parent::filterContent();
 }
 /**
  * Removes content inappropriate for mobile devices
  * @param bool $removeDefaults Whether default settings at $wgMFRemovableClasses should be used
  * @return array
  */
 public function filterContent($removeDefaults = true)
 {
     global $wgMFRemovableClasses;
     if ($removeDefaults) {
         $this->remove($wgMFRemovableClasses['base']);
         $this->remove($wgMFRemovableClasses['HTML']);
         // @todo: Migrate this variable
     }
     if ($this->removeMedia) {
         $this->doRemoveImages();
     }
     return parent::filterContent();
 }