From 8f4b36ca256edc0bee51cb28d05dd15f14e6ee7b Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 25 Jul 2007 06:51:05 +0000 Subject: [PATCH] API: Fix for bug 10662 imageinfo is not cleared for each page --- includes/api/ApiQueryExtLinksUsage.php | 1 - includes/api/ApiQueryImageInfo.php | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 0b7c474758..7789451a6c 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -198,4 +198,3 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { return __CLASS__ . ': $Id$'; } } -?> diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index b067d8741e..2ebc98aa90 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -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$'; } } -?> -- 2.20.1