r106294 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106293‎ | r106294 | r106295 >
Date:00:37, 15 December 2011
Author:preilly
Status:ok
Tags:
Comment:
add profiling calls
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -422,8 +422,9 @@
423423 }
424424
425425 public function beforePageRedirect( $out, &$redirect, &$code ) {
 426+ global $wgMobileDomain;
 427+ wfProfileIn( __METHOD__ );
426428 if ( $out->getTitle()->isSpecial( 'Userlogin' ) ) {
427 - global $wgMobileDomain;
428429 $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? $_SERVER['HTTP_X_DEVICE'] : '';
429430 if ( $xDevice ) {
430431 $parsedUrl = wfParseUrl( $redirect );
@@ -445,6 +446,7 @@
446447 }
447448 }
448449 }
 450+ wfProfileOut( __METHOD__ );
449451 return true;
450452 }
451453

Status & tagging log