Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | } |
89 | 89 | |
90 | 90 | class ExtMobileFrontend { |
91 | | - const VERSION = '0.5.84'; |
| 91 | + const VERSION = '0.5.85'; |
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @var DOMDocument |
— | — | @@ -299,8 +299,10 @@ |
300 | 300 | * @return string |
301 | 301 | */ |
302 | 302 | private function removeQueryStringParameter( $url, $field ) { |
| 303 | + wfProfileIn( __METHOD__ ); |
303 | 304 | $url = preg_replace( '/(.*)(\?|&)' . $field . '=[^&]+?(&)(.*)/i', '$1$2$4', $url . '&' ); |
304 | 305 | $url = substr( $url, 0, -1 ); |
| 306 | + wfProfileOut( __METHOD__ ); |
305 | 307 | return $url; |
306 | 308 | } |
307 | 309 | |
— | — | @@ -394,6 +396,7 @@ |
395 | 397 | self::$mainPageUrl = Title::newMainPage()->getLocalUrl(); |
396 | 398 | self::$randomPageUrl = $this->getRelativeURL( SpecialPage::getTitleFor( 'Randompage' )->getLocalUrl() ); |
397 | 399 | wfProfileOut( __METHOD__ ); |
| 400 | + return true; |
398 | 401 | } |
399 | 402 | |
400 | 403 | /** |
— | — | @@ -613,6 +616,7 @@ |
614 | 617 | self::$isBetaGroupMember = true; |
615 | 618 | } |
616 | 619 | wfProfileOut( __METHOD__ ); |
| 620 | + return true; |
617 | 621 | } |
618 | 622 | |
619 | 623 | /** |
— | — | @@ -629,6 +633,7 @@ |
630 | 634 | $wgCookieDomain = $tempWgCookieDomain; |
631 | 635 | $wgCookiePrefix = $tempWgCookiePrefix; |
632 | 636 | wfProfileOut( __METHOD__ ); |
| 637 | + return true; |
633 | 638 | } |
634 | 639 | |
635 | 640 | private function getOptInOutCookie() { |
— | — | @@ -684,6 +689,7 @@ |
685 | 690 | $wgRequest->response()->header( 'Pragma: no-cache' ); |
686 | 691 | } |
687 | 692 | wfProfileOut( __METHOD__ ); |
| 693 | + return true; |
688 | 694 | } |
689 | 695 | |
690 | 696 | private function sendXDeviceVaryHeader() { |
— | — | @@ -695,6 +701,7 @@ |
696 | 702 | } |
697 | 703 | $wgOut->addVaryHeader( 'Cookie' ); |
698 | 704 | wfProfileOut( __METHOD__ ); |
| 705 | + return true; |
699 | 706 | } |
700 | 707 | |
701 | 708 | private function sendApplicationVersionVaryHeader() { |
— | — | @@ -713,6 +720,7 @@ |
714 | 721 | } |
715 | 722 | } |
716 | 723 | wfProfileOut( __METHOD__ ); |
| 724 | + return true; |
717 | 725 | } |
718 | 726 | |
719 | 727 | /** |
— | — | @@ -1360,6 +1368,7 @@ |
1361 | 1369 | |
1362 | 1370 | public static function buildLanguageSelection() { |
1363 | 1371 | global $wgLanguageCode; |
| 1372 | + wfProfileIn( __METHOD__ ); |
1364 | 1373 | $output = Html::openElement( 'select', |
1365 | 1374 | array( 'id' => 'languageselection', |
1366 | 1375 | 'onchange' => 'javascript:navigateToLanguageSelection();' ) ); |
— | — | @@ -1375,6 +1384,7 @@ |
1376 | 1385 | } |
1377 | 1386 | } |
1378 | 1387 | $output .= Html::closeElement( 'select', array() ); |
| 1388 | + wfProfileOut( __METHOD__ ); |
1379 | 1389 | return $output; |
1380 | 1390 | } |
1381 | 1391 | |