From 8f143934ecff977f4d3077bf415a112390bd8fb2 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 23 May 2011 16:37:56 +0000 Subject: [PATCH] exit -> return now that we are in a function --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' ); -- 2.20.1