$forward .= ' from ' . $_SERVER['HTTP_FROM'];
if( $forward )
$forward = "\t(proxied via {$_SERVER['REMOTE_ADDR']}{$forward})";
- if( $wgUser->isAnon() )
+ if( is_object($wgUser) && $wgUser->isAnon() )
$forward .= ' anon';
$log = sprintf( "%s\t%04.3f\t%s\n",
gmdate( 'YmdHis' ), $elapsed,
} else {
wfDebug('WARNING: Abrupt exit\n');
}
+
+ wfProfileClose();
+ logProfilingData();
+
if ( !$error ) {
$wgLoadBalancer->closeAll();
}
$out->out( $this->afterContent() );
- wfProfileClose();
$out->out( $out->reportTime() );
$out->out( "\n</body></html>" );
* @package MediaWiki
*/
$wgRequestTime = microtime();
+$wgRUstart = getrusage();
unset( $IP );
@ini_set( 'allow_url_fopen', 0 ); # For security...
wfProfileOut( 'main-cleanup' );
+wfProfileClose();
logProfilingData();
$wgLoadBalancer->closeAll();
wfDebug( "Request ended normally\n" );