From: Tim Starling Date: Sun, 16 Jul 2006 04:07:01 +0000 (+0000) Subject: wrong language object X-Git-Tag: 1.31.0-rc.0~56225 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=c44783141981c0dbfd6eaa2a87c571a7f6d79d04;p=lhc%2Fweb%2Fwiklou.git wrong language object --- diff --git a/img_auth.php b/img_auth.php index 111fbdf747..4917fe5091 100644 --- a/img_auth.php +++ b/img_auth.php @@ -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 ) {