API * touched field format
authorYuri Astrakhan <yurik@users.mediawiki.org>
Sat, 21 Oct 2006 08:44:07 +0000 (08:44 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Sat, 21 Oct 2006 08:44:07 +0000 (08:44 +0000)
* Removed duplicate pageid

includes/api/ApiQueryBase.php
includes/api/ApiQueryInfo.php

index 5a6ca8b..151dc72 100644 (file)
@@ -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
index 4ad8194..fb1c9c0 100644 (file)
@@ -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])
                        );