From: Yuri Astrakhan Date: Sat, 21 Oct 2006 08:44:07 +0000 (+0000) Subject: API * touched field format X-Git-Tag: 1.31.0-rc.0~55416 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=1e861c9f48f1ef87f1a235e6d0db3572b103b0b4;p=lhc%2Fweb%2Fwiklou.git API * touched field format * Removed duplicate pageid --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 5a6ca8be75..151dc725a3 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -174,12 +174,6 @@ abstract class ApiQueryBase extends ApiBase { $vals = array_merge($vals, $params); } } - - } elseif ($prefix === 'rev') { - - // PageId - @$tmp = $row->rev_page; - if(!is_null($tmp)) $vals['pageid'] = intval($tmp); } // Type diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 4ad8194a52..fb1c9c0a16 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -54,7 +54,7 @@ class ApiQueryInfo extends ApiQueryBase { foreach ($titles as $pageid => $title) { $pageInfo = array ( - 'touched' => $pageTouched[$pageid], + 'touched' => wfTimestamp(TS_ISO_8601, $pageTouched[$pageid]), 'lastrevid' => intval($pageLatest[$pageid]) );