*/
function executePath( &$title, $including = false ) {
global $wgSpecialPages, $wgOut, $wgTitle;
+ $fname = 'SpecialPage::executePath';
+ wfProfileIn( $fname );
$bits = split( "/", $title->getDBkey(), 2 );
$name = $bits[0];
$page = SpecialPage::getPage( $name );
if ( is_null( $page ) ) {
if ( $including ) {
+ wfProfileOut( $fname );
return false;
} else {
$redir = SpecialPage::getRedirect( $name );
}
} else {
if ( $including && !$page->includable() ) {
+ wfProfileOut( $fname );
return false;
}
if($par !== NULL) {
}
$page->including( $including );
+ $profName = 'Special:' . $page->getName();
+ wfProfileIn( $profName );
$page->execute( $par );
+ wfProfileOut( $profName );
$retVal = true;
}
+ wfProfileOut( $fname );
return $retVal;
}