wrong language object
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 16 Jul 2006 04:07:01 +0000 (04:07 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 16 Jul 2006 04:07:01 +0000 (04:07 +0000)
img_auth.php

index 111fbdf..4917fe5 100644 (file)
@@ -18,7 +18,7 @@ if( !isset( $_SERVER['PATH_INFO'] ) ) {
 # Get filenames/directories
 $filename = realpath( $wgUploadDirectory . $_SERVER['PATH_INFO'] );
 $realUploadDirectory = realpath( $wgUploadDirectory );
-$imageName = $wgLang->getNsText( NS_IMAGE ) . ":" . basename( $_SERVER['PATH_INFO'] );
+$imageName = $wgContLang->getNsText( NS_IMAGE ) . ":" . basename( $_SERVER['PATH_INFO'] );
 
 # Check if the filename is in the correct directory
 if ( substr( $filename, 0, strlen( $realUploadDirectory ) ) != $realUploadDirectory ) {