dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5d8176c
)
API: fixed timestamp format for 'continue' values
author
Yuri Astrakhan
<yurik@users.mediawiki.org>
Mon, 9 Jul 2007 05:19:07 +0000
(
05:19
+0000)
committer
Yuri Astrakhan
<yurik@users.mediawiki.org>
Mon, 9 Jul 2007 05:19:07 +0000
(
05:19
+0000)
includes/api/ApiQueryLogEvents.php
patch
|
blob
|
history
includes/api/ApiQueryRecentChanges.php
patch
|
blob
|
history
includes/api/ApiQueryUserContributions.php
patch
|
blob
|
history
includes/api/ApiQueryWatchlist.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryLogEvents.php
b/includes/api/ApiQueryLogEvents.php
index
c9b4edc
..
7c3e686
100644
(file)
--- a/
includes/api/ApiQueryLogEvents.php
+++ b/
includes/api/ApiQueryLogEvents.php
@@
-93,7
+93,7
@@
class ApiQueryLogEvents extends ApiQueryBase {
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
- $this->setContinueEnumParameter('start',
$row->log_timestamp
);
+ $this->setContinueEnumParameter('start',
wfTimestamp(TS_ISO_8601, $row->log_timestamp)
);
break;
}
break;
}
diff --git
a/includes/api/ApiQueryRecentChanges.php
b/includes/api/ApiQueryRecentChanges.php
index
6342113
..
07571db
100644
(file)
--- a/
includes/api/ApiQueryRecentChanges.php
+++ b/
includes/api/ApiQueryRecentChanges.php
@@
-110,7
+110,7
@@
class ApiQueryRecentChanges extends ApiQueryBase {
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
- $this->setContinueEnumParameter('start',
$row->rc_timestamp
);
+ $this->setContinueEnumParameter('start',
wfTimestamp(TS_ISO_8601, $row->rc_timestamp)
);
break;
}
break;
}
diff --git
a/includes/api/ApiQueryUserContributions.php
b/includes/api/ApiQueryUserContributions.php
index
9b91b12
..
5a910cb
100644
(file)
--- a/
includes/api/ApiQueryUserContributions.php
+++ b/
includes/api/ApiQueryUserContributions.php
@@
-75,7
+75,7
@@
class ApiQueryContributions extends ApiQueryBase {
while ( $row = $db->fetchObject( $res ) ) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
while ( $row = $db->fetchObject( $res ) ) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
- $this->setContinueEnumParameter('start',
$row->rev_timestamp
);
+ $this->setContinueEnumParameter('start',
wfTimestamp(TS_ISO_8601, $row->rev_timestamp)
);
break;
}
break;
}
diff --git
a/includes/api/ApiQueryWatchlist.php
b/includes/api/ApiQueryWatchlist.php
index
a1de32a
..
5cf8ccf
100644
(file)
--- a/
includes/api/ApiQueryWatchlist.php
+++ b/
includes/api/ApiQueryWatchlist.php
@@
-148,7
+148,7
@@
class ApiQueryWatchlist extends ApiQueryGeneratorBase {
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
while ($row = $db->fetchObject($res)) {
if (++ $count > $limit) {
// We've reached the one extra which shows that there are additional pages to be had. Stop here...
- $this->setContinueEnumParameter('start',
$row->rc_timestamp
);
+ $this->setContinueEnumParameter('start',
wfTimestamp(TS_ISO_8601, $row->rc_timestamp)
);
break;
}
break;
}