* (bug 6164) Avoid smashing Cite state if message transformation triggers
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Oct 2006 01:07:01 +0000 (01:07 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Oct 2006 01:07:01 +0000 (01:07 +0000)
  during bad image list check, by skipping message transformation.
  This isn't a good permanent fix.

RELEASE-NOTES
includes/ImageFunctions.php

index a13bf96..aa93791 100644 (file)
@@ -36,7 +36,10 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Disable PHP exception backtrace printing unless $wgShowExceptionDetails
   is set. Backtraces may contain sensitive information in function call
   parameters.
-
+* (bug 6164) Avoid smashing Cite state if message transformation triggers
+  during bad image list check, by skipping message transformation.
+  This isn't a good permanent fix.
+  
 
 == Languages updated ==
 
index d182d52..7575558 100644 (file)
@@ -198,7 +198,7 @@ function wfIsBadImage( $name, $contextTitle = false ) {
        if( !$badImages ) {
                # Build the list now
                $badImages = array();
-               $lines = explode( "\n", wfMsgForContent( 'bad_image_list' ) );
+               $lines = explode( "\n", wfMsgForContentNoTrans( 'bad_image_list' ) );
                foreach( $lines as $line ) {
                        # List items only
                        if ( substr( $line, 0, 1 ) !== '*' ) {