From 1e861c9f48f1ef87f1a235e6d0db3572b103b0b4 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 21 Oct 2006 08:44:07 +0000 Subject: [PATCH] API * touched field format * Removed duplicate pageid --- includes/api/ApiQueryBase.php | 6 ------ includes/api/ApiQueryInfo.php | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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]) ); -- 2.20.1