From 37a62ba6e134f9c65e3ed08c456bdb9a1dbd3f09 Mon Sep 17 00:00:00 2001 From: Benjamin Lees Date: Wed, 5 Aug 2009 00:59:50 +0000 Subject: [PATCH] Followup to r54406: enable/disable functions were being called in the wrong order (thanks, OverlordQ). --- includes/Setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index e74e9cef27..88354c5ea8 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -155,9 +155,9 @@ $memlimit = ini_get( "memory_limit" ); if( !( empty( $memlimit ) || $memlimit == -1 ) ) { if( wfParseMemoryLimit( $memlimit ) < wfParseMemoryLimit( $wgMemoryLimit ) ) { wfDebug( "\n\nRaise PHP's memory limit from $memlimit to $wgMemoryLimit\n" ); - wfEnableWarnings(); - ini_set( "memory_limit", $wgMemoryLimit ); wfDisableWarnings(); + ini_set( "memory_limit", $wgMemoryLimit ); + wfEnableWarnings(); } } -- 2.20.1