]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/filerepo/UnregisteredLocalFile.php
MediaWiki 1.14.0
[autoinstalls/mediawiki.git] / includes / filerepo / UnregisteredLocalFile.php
index 419c61f6cd45e23931874461ab894395e60f4c95..6f63cb0bca71851b6cbb69427bf0e4460b8a7d1f 100644 (file)
@@ -1,14 +1,16 @@
 <?php
 
 /**
- * A file object referring to either a standalone local file, or a file in a 
+ * A file object referring to either a standalone local file, or a file in a
  * local repository with no database, for example an FSRepo repository.
  *
  * Read-only.
  *
- * TODO: Currently it doesn't really work in the repository role, there are 
- * lots of functions missing. It is used by the WebStore extension in the 
+ * TODO: Currently it doesn't really work in the repository role, there are
+ * lots of functions missing. It is used by the WebStore extension in the
  * standalone role.
+ *
+ * @ingroup FileRepo
  */
 class UnregisteredLocalFile extends File {
        var $title, $path, $mime, $handler, $dims;
@@ -30,7 +32,7 @@ class UnregisteredLocalFile extends File {
                        $this->name = $repo->getNameFromTitle( $title );
                } else {
                        $this->name = basename( $path );
-                       $this->title = Title::makeTitleSafe( NS_IMAGE, $this->name );
+                       $this->title = Title::makeTitleSafe( NS_FILE, $this->name );
                }
                $this->repo = $repo;
                if ( $path ) {
@@ -106,4 +108,3 @@ class UnregisteredLocalFile extends File {
                }
        }
 }
-