Revert r49669, r49670 "extract text layer from djvu file (see bug 18046)"
[lhc/web/wiklou.git] / img_auth.php
index 4b625e3..e5d8d88 100644 (file)
@@ -5,11 +5,13 @@
  *
  * To use this:
  *
- * Set $wgUploadDirectory to a non-public directory (not web accessible)
- * Set $wgUploadPath to point to this file
+ * Set $wgUploadDirectory to a non-public directory (not web accessible)
+ * Set $wgUploadPath to point to this file
  *
  * Your server needs to support PATH_INFO; CGI-based configurations
  * usually don't.
+ *
+ * @file
  */
  
 define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
@@ -48,7 +50,7 @@ if( preg_match( '!\d+px-(.*)!i', $name, $m ) )
        $name = $m[1];
 wfDebugLog( 'img_auth', "\$name is {$name}" );
 
-$title = Title::makeTitleSafe( NS_IMAGE, $name );
+$title = Title::makeTitleSafe( NS_FILE, $name );
 if( !$title instanceof Title ) {
        wfDebugLog( 'img_auth', "Unable to construct a valid Title from `{$name}`" );
        wfForbidden();