r93588 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93587‎ | r93588 | r93589 >
Date:14:21, 31 July 2011
Author:hartman
Status:ok
Tags:
Comment:
Remove galleries and <audio> <video> elements in disableImages mode.
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -432,9 +432,12 @@
433433
434434 if ( self::$disableImages == 1 ) {
435435 $itemToRemoveRecords['TAG'][] = "img";
 436+ $itemToRemoveRecords['TAG'][] = "audio";
 437+ $itemToRemoveRecords['TAG'][] = "video";
436438 $itemToRemoveRecords['CLASS'][] = "thumb tright";
437439 $itemToRemoveRecords['CLASS'][] = "thumb tleft";
438440 $itemToRemoveRecords['CLASS'][] = "thumbcaption";
 441+ $itemToRemoveRecords['CLASS'][] = "gallery";
439442 }
440443
441444 $domElemsToRemove = array();

Status & tagging log