r93596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93595‎ | r93596 | r93597 >
Date:17:28, 31 July 2011
Author:hartman
Status:ok
Tags:
Comment:
Follow up to r93595
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -285,6 +285,7 @@
286286 $disableButton = self::$messages['mobile-frontend-disable-button'];
287287 $backButton = self::$messages['mobile-frontend-back-button'];
288288 $htmlTitle = $areYouSure;
 289+ $title = $areYouSure;
289290 $cssFileName = ( isset( self::$device['css_file_name'] ) ) ? self::$device['css_file_name'] : 'default';
290291 require( 'views/notices/_donate.html.php' );
291292 require( 'views/layout/_search_webkit.html.php' );
@@ -505,10 +506,6 @@
506507
507508 $contentHtml = $this->doc->saveXML( $content, LIBXML_NOEMPTYTAG );
508509
509 - if ( empty( $title ) ) {
510 - $title = $wgSitename;
511 - }
512 -
513510 $dir = self::$dir;
514511 $code = self::$code;
515512 $regularSite = self::$messages['mobile-frontend-regular-site'];

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93595Instead of scraping the page title, use the actual title from the title objec...hartman17:18, 31 July 2011

Status & tagging log