From: Alexandre Emsenhuber Date: Mon, 23 May 2011 16:37:56 +0000 (+0000) Subject: exit -> return now that we are in a function X-Git-Tag: 1.31.0-rc.0~29994 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=8f143934ecff977f4d3077bf415a112390bd8fb2;p=lhc%2Fweb%2Fwiklou.git exit -> return now that we are in a function --- diff --git a/index.php b/index.php index 309e3ad4d5..d10af4451d 100644 --- a/index.php +++ b/index.php @@ -88,7 +88,7 @@ function wfIndexMain() { } else { echo "Waiting for a database server: $lag seconds lagged\n"; } - exit; + return; } } @@ -108,7 +108,7 @@ function wfIndexMain() { $dispatcher->performAction(); wfProfileOut( 'index.php' ); $mediaWiki->restInPeace(); - exit; + return; } if ( $wgUseFileCache && $wgTitle !== null ) { @@ -132,7 +132,7 @@ function wfIndexMain() { $mediaWiki->finalCleanup(); wfProfileOut( 'index.php' ); $mediaWiki->restInPeace(); - exit; + return; } } wfProfileOut( 'index.php-filecache' );