Fixed use of undefined FILES_ONLY constant.
authorAaron <aschulz@wikimedia.org>
Wed, 11 Apr 2012 18:47:15 +0000 (11:47 -0700)
committerAaron <aschulz@wikimedia.org>
Wed, 11 Apr 2012 18:47:15 +0000 (11:47 -0700)
Change-Id: Icc924785cdb394adc723666bf9f6a67e9d6a4d0d

img_auth.php

index 82afef2..a51e5ca 100644 (file)
@@ -92,7 +92,7 @@ function wfImageAuthMain() {
        }
 
        // Check to see if the file exists
-       if ( !$repo->fileExists( $filename, FileRepo::FILES_ONLY ) ) {
+       if ( !$repo->fileExists( $filename ) ) {
                wfForbidden( 'img-auth-accessdenied','img-auth-nofile', $filename );
                return;
        }