From: Yuri Astrakhan Date: Wed, 25 Jul 2007 06:51:05 +0000 (+0000) Subject: API: Fix for bug 10662 imageinfo is not cleared for each page X-Git-Tag: 1.31.0-rc.0~51968 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=8f4b36ca256edc0bee51cb28d05dd15f14e6ee7b;p=lhc%2Fweb%2Fwiklou.git API: Fix for bug 10662 imageinfo is not cleared for each page --- 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$'; } } -?>