Added wfDeprecated() to wfAbruptExit() and wfErrorExit() and removed a comment that...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Oct 2010 08:42:38 +0000 (08:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Oct 2010 08:42:38 +0000 (08:42 +0000)
includes/Exception.php
includes/GlobalFunctions.php

index 2244362..a5e86cd 100644 (file)
@@ -388,7 +388,7 @@ function wfExceptionHandler( $e ) {
 
        wfReportException( $e );
 
-       // Final cleanup, similar to wfErrorExit()
+       // Final cleanup
        if ( $wgFullyInitialised ) {
                try {
                        wfLogProfilingData(); // uses $wgRequest, hence the $wgFullyInitialised condition
index fc793b9..3b1c0be 100644 (file)
@@ -937,6 +937,7 @@ function wfAbruptExit( $error = false ) {
        }
        $called = true;
 
+       wfDeprecated( __FUNCTION__ );
        $bt = wfDebugBacktrace();
        if( $bt ) {
                for( $i = 0; $i < count( $bt ); $i++ ) {
@@ -960,6 +961,7 @@ function wfAbruptExit( $error = false ) {
  * @deprecated Please return control the caller or throw an exception
  */
 function wfErrorExit() {
+       wfDeprecated( __FUNCTION__ );
        wfAbruptExit( true );
 }