exit;
}
+wfProfileIn( "main-action" );
if( $search = $wgRequest->getText( 'search' ) ) {
require_once( 'SearchEngine.php' );
$wgTitle = Title::makeTitle( NS_SPECIAL, "Search" );
$wgOut->errorpage( "nosuchaction", "nosuchactiontext" );
}
}
+wfProfileOut( "main-action" );
# Deferred updates aren't really deferred anymore. It's important to report errors to the
# user, and that means doing this before OutputPage::output(). Note that for page saves,
# the client will wait until the script exits anyway before following the redirect.
+wfProfileIn( "main-updates" );
foreach ( $wgDeferredUpdateList as $up ) {
$up->doUpdate();
}
+wfProfileOut( "main-updates" );
+wfProfileIn( "main-cleanup" );
$wgLoadBalancer->saveMasterPos();
# Now commit any transactions, so that unreported errors after output() don't roll back the whole thing
$wgLoadBalancer->commitAll();
$wgOut->output();
+wfProfileOut( "main-cleanup" );
logProfilingData();
$wgLoadBalancer->closeAll();
# all strtolower on stripped output or argument
# should be removed and all stripForSearch
# methods adjusted to that.
+
+ wfProfileIn( "LanguageUtf8::stripForSearch" );
if( function_exists( 'mb_strtolower' ) ) {
- return preg_replace(
+ $out = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"'U8' . bin2hex( \"$1\" )",
mb_strtolower( $string ) );
} else {
global $wikiLowerChars;
- return preg_replace(
+ $out = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"'U8' . bin2hex( strtr( \"\$1\", \$wikiLowerChars ) )",
$string );
}
+ wfProfileOut( "LanguageUtf8::stripForSearch" );
+ return $out;
}
function fallback8bitEncoding() {