Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | 'cl_to' |
62 | 62 | )); |
63 | 63 | |
64 | | - $fld_sortkey = false; |
| 64 | + $fld_sortkey = $fld_timestamp = false; |
65 | 65 | if (!is_null($prop)) { |
66 | 66 | foreach($prop as $p) { |
67 | 67 | switch ($p) { |
— | — | @@ -68,6 +68,10 @@ |
69 | 69 | $this->addFields('cl_sortkey'); |
70 | 70 | $fld_sortkey = true; |
71 | 71 | break; |
| 72 | + case 'timestamp': |
| 73 | + $this->addFields('cl_timestamp'); |
| 74 | + $fld_timestamp = true; |
| 75 | + break; |
72 | 76 | default : |
73 | 77 | ApiBase :: dieDebug(__METHOD__, "Unknown prop=$p"); |
74 | 78 | } |
— | — | @@ -100,6 +104,8 @@ |
101 | 105 | ApiQueryBase :: addTitleInfo($vals, $title); |
102 | 106 | if ($fld_sortkey) |
103 | 107 | $vals['sortkey'] = $row->cl_sortkey; |
| 108 | + if ($fld_timestamp) |
| 109 | + $vals['timestamp'] = $row->cl_timestamp; |
104 | 110 | |
105 | 111 | $data[] = $vals; |
106 | 112 | } |
— | — | @@ -126,6 +132,7 @@ |
127 | 133 | ApiBase :: PARAM_ISMULTI => true, |
128 | 134 | ApiBase :: PARAM_TYPE => array ( |
129 | 135 | 'sortkey', |
| 136 | + 'timestamp', |
130 | 137 | ) |
131 | 138 | ) |
132 | 139 | ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -476,6 +476,7 @@ |
477 | 477 | * (bug 14402) Added maxage and smaxage parameters to api.php |
478 | 478 | * Added bkip parameter to list=blocks |
479 | 479 | * (bug 14651) apprefix and similar parameters are now canonicalized |
| 480 | +* Added clprop=timestamp to prop=categories |
480 | 481 | |
481 | 482 | === Languages updated in 1.13 === |
482 | 483 | |