NS_IMAGE -> NS_FILE
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 24 Feb 2009 15:53:55 +0000 (15:53 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 24 Feb 2009 15:53:55 +0000 (15:53 +0000)
includes/filerepo/ForeignAPIRepo.php

index 23572a4..e63e4a6 100644 (file)
@@ -120,7 +120,7 @@ class ForeignAPIRepo extends FileRepo {
                $ret = array();
                if ( isset( $results['query']['allimages'] ) ) {
                        foreach ( $results['query']['allimages'] as $img ) {
-                               $ret[] = new ForeignAPIFile( Title::makeTitle( NS_IMAGE, $img['name'] ), $this, $img );
+                               $ret[] = new ForeignAPIFile( Title::makeTitle( NS_FILE, $img['name'] ), $this, $img );
                        }
                }
                return $ret;