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:
9d5210b
)
use Database::timestamp() for cutoff
author
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:22:15 +0000
(13:22 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:22:15 +0000
(13:22 +0000)
includes/SpecialWatchlist.php
patch
|
blob
|
history
diff --git
a/includes/SpecialWatchlist.php
b/includes/SpecialWatchlist.php
index
d3d833b
..
cd96ae9
100644
(file)
--- a/
includes/SpecialWatchlist.php
+++ b/
includes/SpecialWatchlist.php
@@
-81,7
+81,7
@@
function wfSpecialWatchlist()
$npages = wfMsg( "all" );
} else {
$docutoff = "AND cur_timestamp > '" .
- ( $cutoff =
wfUnix2T
imestamp( time() - intval( $days * 86400 ) ) )
+ ( $cutoff =
$dbr->t
imestamp( time() - intval( $days * 86400 ) ) )
. "'";
$sql = "SELECT COUNT(*) AS n FROM $cur WHERE cur_timestamp>'$cutoff'";
$res = $dbr->query( $sql );