API: Fix for bug 10662 imageinfo is not cleared for each page
authorYuri Astrakhan <yurik@users.mediawiki.org>
Wed, 25 Jul 2007 06:51:05 +0000 (06:51 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Wed, 25 Jul 2007 06:51:05 +0000 (06:51 +0000)
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryImageInfo.php

index 0b7c474..7789451 100644 (file)
@@ -198,4 +198,3 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                return __CLASS__ . ': $Id$';
        }
 }
-?>
index b067d87..2ebc98a 100644 (file)
@@ -58,7 +58,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                $title = Title :: makeTitle(NS_IMAGE, $dbKey);
                                $img = wfFindFile($title);
 
-                               $vals = array();
+                               $data = array();
                                if ( !$img ) {
                                        $data['missing'] = '';                  
                                } else {
@@ -137,7 +137,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
        }
 
        public function getVersion() {
-               return __CLASS__ . ': $Id:$';
+               return __CLASS__ . ': $Id$';
        }
 }
-?>