dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obvious function-level profiling
[lhc/web/wiklou.git]
/
includes
/
specialpage
/
SpecialPageFactory.php
diff --git
a/includes/specialpage/SpecialPageFactory.php
b/includes/specialpage/SpecialPageFactory.php
index
1531f69
..
175b0cb
100644
(file)
--- a/
includes/specialpage/SpecialPageFactory.php
+++ b/
includes/specialpage/SpecialPageFactory.php
@@
-220,7
+220,6
@@
class SpecialPageFactory {
global $wgPageLanguageUseDB;
if ( !is_array( self::$list ) ) {
global $wgPageLanguageUseDB;
if ( !is_array( self::$list ) ) {
- wfProfileIn( __METHOD__ );
self::$list = self::$coreList;
self::$list = self::$coreList;
@@
-252,9
+251,8
@@
class SpecialPageFactory {
// Run hooks
// This hook can be used to remove undesired built-in special pages
// Run hooks
// This hook can be used to remove undesired built-in special pages
-
wfRunHooks
( 'SpecialPage_initList', array( &self::$list ) );
+
Hooks::run
( 'SpecialPage_initList', array( &self::$list ) );
- wfProfileOut( __METHOD__ );
}
return self::$list;
}
return self::$list;
@@
-527,7
+525,6
@@
class SpecialPageFactory {
* @return bool
*/
public static function executePath( Title &$title, IContextSource &$context, $including = false ) {
* @return bool
*/
public static function executePath( Title &$title, IContextSource &$context, $including = false ) {
- wfProfileIn( __METHOD__ );
// @todo FIXME: Redirects broken due to this call
$bits = explode( '/', $title->getDBkey(), 2 );
// @todo FIXME: Redirects broken due to this call
$bits = explode( '/', $title->getDBkey(), 2 );
@@
-549,7
+546,6
@@
class SpecialPageFactory {
}
$context->getOutput()->showErrorPage( 'nosuchspecialpage', 'nospecialpagetext' );
}
$context->getOutput()->showErrorPage( 'nosuchspecialpage', 'nospecialpagetext' );
- wfProfileOut( __METHOD__ );
return false;
}
return false;
}
@@
-569,14
+565,12
@@
class SpecialPageFactory {
$title = $page->getPageTitle( $par );
$url = $title->getFullURL( $query );
$context->getOutput()->redirect( $url );
$title = $page->getPageTitle( $par );
$url = $title->getFullURL( $query );
$context->getOutput()->redirect( $url );
- wfProfileOut( __METHOD__ );
return $title;
} else {
$context->setTitle( $page->getPageTitle( $par ) );
}
} elseif ( !$page->isIncludable() ) {
return $title;
} else {
$context->setTitle( $page->getPageTitle( $par ) );
}
} elseif ( !$page->isIncludable() ) {
- wfProfileOut( __METHOD__ );
return false;
}
return false;
}
@@
-584,11
+578,7
@@
class SpecialPageFactory {
$page->including( $including );
// Execute special page
$page->including( $including );
// Execute special page
- $profName = 'Special:' . $page->getName();
- wfProfileIn( $profName );
$page->run( $par );
$page->run( $par );
- wfProfileOut( $profName );
- wfProfileOut( __METHOD__ );
return true;
}
return true;
}