X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=img_auth.php;h=2f7fb390506c0a764f3de9c68aecbf75137fdde6;hb=212b927746caa8a5e8c7f2aad9ac29d67c5faa59;hp=74602f26aa607e5c0d5169fbfcf14db940b16af8;hpb=4c5214f27f722b9b3c54b68a7e9d72a60915e053;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 74602f26aa..2f7fb39050 100644 --- a/img_auth.php +++ b/img_auth.php @@ -43,12 +43,12 @@ define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); if ( isset( $_SERVER['MW_COMPILED'] ) ) { require ( 'core/includes/WebStart.php' ); } else { - require ( dirname( __FILE__ ) . '/includes/WebStart.php' ); + require ( __DIR__ . '/includes/WebStart.php' ); } wfProfileIn( 'img_auth.php' ); # Set action base paths so that WebRequest::getPathInfo() -# recognizes the "X" as the 'title' in ../image_auth/X urls. +# recognizes the "X" as the 'title' in ../img_auth.php/X urls. $wgArticlePath = false; # Don't let a "/*" article path clober our action path $wgActionPaths = array( "$wgUploadPath/" ); @@ -106,7 +106,7 @@ function wfImageAuthMain() { // Check to see if the file exists if ( !$repo->fileExists( $filename ) ) { - wfForbidden( 'img-auth-accessdenied','img-auth-nofile', $filename ); + wfForbidden( 'img-auth-accessdenied', 'img-auth-nofile', $filename ); return; }