r111546 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111545‎ | r111546 | r111547 >
Date:15:29, 15 February 2012
Author:maxsem
Status:ok
Tags:
Comment:
Rm separate JS support flag, not used
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFormatter.php (modified) (history)
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFormatter.php
@@ -19,7 +19,6 @@
2020 */
2121 protected $title;
2222
23 - protected $enableJavaScript = false;
2423 protected $expandableSections = false;
2524
2625 private $headings = 0;
@@ -112,10 +111,6 @@
113112 return $this->format;
114113 }
115114
116 - public function enableJavaScript( $flag = true ) {
117 - $this->enableJavaScript = $flag;
118 - }
119 -
120115 public function enableExpandableSections( $flag = true ) {
121116 $this->expandableSections = $flag;
122117 }
Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -1066,7 +1066,6 @@
10671067
10681068 $formatter = new MobileFormatter( $html, self::$title, $this->contentFormat, $this->wmlContext );
10691069 $formatter->useMessages( self::$messages );
1070 - $formatter->enableJavaScript( self::$device['supports_javascript'] );
10711070 $doc = $formatter->getDoc();
10721071
10731072 $zeroRatedBannerElement = $doc->getElementById( 'zero-rated-banner' );

Status & tagging log