From: Mr. E23 Date: Wed, 10 Dec 2003 15:05:08 +0000 (+0000) Subject: Replaced calls to exit() with wfAbruptExit(). X-Git-Tag: 1.3.0beta1~1265 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=53fba653e07593a85ef2f418d3953a7f433c2bac;p=lhc%2Fweb%2Fwiklou.git Replaced calls to exit() with wfAbruptExit(). --- diff --git a/includes/Article.php b/includes/Article.php index 84bbdad376..dc654eee66 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1212,7 +1212,7 @@ class Article { wfDebug( " tryFileCache() - about to load\n" ); $cache->loadFromFileCache(); $wgOut->reportTime(); # For profiling - exit; + wfAbruptExit(); } else { wfDebug( " tryFileCache() - starting buffer\n" ); if($cache->useGzip() && wfClientAcceptsGzip()) { diff --git a/includes/DatabaseFunctions.php b/includes/DatabaseFunctions.php index 9a05c6211c..9e4779a40c 100644 --- a/includes/DatabaseFunctions.php +++ b/includes/DatabaseFunctions.php @@ -87,7 +87,7 @@ function wfEmergencyAbort( $msg = "" ) { header( "Cache-control: none" ); header( "Pragma: nocache" ); echo $text; - exit; + wfAbruptExit(); } # $db: DB_READ = -1 read from slave (or only server) @@ -102,7 +102,6 @@ function wfQuery( $sql, $db, $fname = "" ) # wfGeneralizeSQL will probably cut down the query to reasonable # logging size most of the time. The substr is really just a sanity check. $profName = "wfQuery: " . substr( wfGeneralizeSQL( $sql ), 0, 255 ); - wfProfileIn( $profName ); } @@ -128,7 +127,7 @@ function wfQuery( $sql, $db, $fname = "" ) if ( false === $ret ) { $wgOut->databaseError( $fname ); - exit; + wfAbruptExit(); } if ( $wgProfiling ) { diff --git a/includes/OutputPage.php b/includes/OutputPage.php index cdd84c2dca..ab2c72d675 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -75,7 +75,7 @@ class OutputPage { header( "Last-Modified: {$lastmod}" ); wfDebug( "CACHED client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false ); $this->reportTime(); # For profiling - exit; + wfAbruptExit(); } else { wfDebug( "READY client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false ); $this->mLastModified = $lastmod; @@ -362,7 +362,7 @@ class OutputPage { $this->returnToMain( false ); $this->output(); - exit; + wfAbruptExit(); } function sysopRequired() @@ -418,7 +418,7 @@ class OutputPage { if ( $wgCommandLineMode ) { print "$msg\n"; - exit(); + wfAbruptExit(); } $sk = $wgUser->getSkin(); $shlink = $sk->makeKnownLink( wfMsgNoDB( "searchhelppage" ), @@ -427,7 +427,7 @@ class OutputPage { $this->mBodytext = $msg; $this->output(); - exit(); + wfAbruptExit(); } function readOnlyPage( $source = "", $protected = false ) @@ -465,7 +465,7 @@ class OutputPage { $this->mBodytext = $message; $this->output(); - exit; + wfAbruptExit(); } function unexpectedValueError( $name, $val ) diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 47882990a7..7985b4bcfc 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -15,7 +15,7 @@ function wfSpecialExport( $page = "" ) { $pages = explode( "\n", $page ); $xml = pages2xml( $pages, $curonly ); echo $xml; - exit(); + wfAbruptExit(); } $wgOut->addWikiText( wfMsg( "exporttext" ) );