https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106294
Revision: 106294
Author: preilly
Date: 2011-12-15 00:37:22 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
add profiling calls
Modified Paths:
--------------
trunk/extensions/MobileFrontend/MobileFrontend.php
Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php 2011-12-15 00:31:14 UTC
(rev 106293)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php 2011-12-15 00:37:22 UTC
(rev 106294)
@@ -422,8 +422,9 @@
}
public function beforePageRedirect( $out, &$redirect, &$code ) {
+ global $wgMobileDomain;
+ wfProfileIn( __METHOD__ );
if ( $out->getTitle()->isSpecial( 'Userlogin' ) ) {
- global $wgMobileDomain;
$xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ?
$_SERVER['HTTP_X_DEVICE'] : '';
if ( $xDevice ) {
$parsedUrl = wfParseUrl( $redirect );
@@ -445,6 +446,7 @@
}
}
}
+ wfProfileOut( __METHOD__ );
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs