*/
$wgRequestTime = microtime();
+# getrusage() does not exist on the Window$ platform, catching this
+if ( function_exists ( 'getrusage' ) ) {
+ $wgRUstart = getrusage();
+} else {
+ $wgRUstart = array() ;
+}
+
unset( $IP );
@ini_set( 'allow_url_fopen', 0 ); # For security...
unset($wgArticle);
require_once( 'includes/ImagePage.php' );
$wgArticle = new ImagePage( $wgTitle );
- } elseif ( $wgUseCategoryMagic && $ns == NS_CATEGORY ) {
+ } elseif ( $ns == NS_CATEGORY ) {
unset($wgArticle);
require_once( 'includes/CategoryPage.php' );
$wgArticle = new CategoryPage( $wgTitle );
wfProfileOut( 'main-cleanup' );
+wfProfileClose();
logProfilingData();
$wgLoadBalancer->closeAll();
wfDebug( "Request ended normally\n" );