From c44783141981c0dbfd6eaa2a87c571a7f6d79d04 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 16 Jul 2006 04:07:01 +0000 Subject: [PATCH] wrong language object --- img_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1