r111177 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111176‎ | r111177 | r111178 >
Date:18:44, 10 February 2012
Author:maxsem
Status:ok
Tags:
Comment:
Fixed wrong format passed to manipulator, removed unused variable
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -1215,7 +1215,7 @@
12161216 global $wgScript;
12171217 wfProfileIn( __METHOD__ );
12181218
1219 - $manipulator = new DomManipulator( $html, self::$format );
 1219+ $manipulator = new DomManipulator( $html, $this->contentFormat );
12201220 $doc = $manipulator->getDoc();
12211221
12221222 $zeroRatedBannerElement = $doc->getElementById( 'zero-rated-banner' );
@@ -1291,7 +1291,6 @@
12921292 $contentHtml = $doc->saveXML( $content, LIBXML_NOEMPTYTAG );
12931293 }
12941294
1295 - $title = htmlspecialchars( self::$title->getText() );
12961295 $htmlTitle = htmlspecialchars( self::$htmlTitle );
12971296
12981297 if ( strlen( $contentHtml ) > 4000 && $this->contentFormat == 'XHTML'

Status & tagging log