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:
b76f332
)
Tweak timestamp handling to allow no lower limit
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 13 Dec 2008 14:59:08 +0000
(14:59 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 13 Dec 2008 14:59:08 +0000
(14:59 +0000)
includes/filerepo/LocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/LocalFile.php
b/includes/filerepo/LocalFile.php
index
ea92fe5
..
2072ebd
100644
(file)
--- a/
includes/filerepo/LocalFile.php
+++ b/
includes/filerepo/LocalFile.php
@@
-635,7
+635,8
@@
class LocalFile extends File
$conds[] = "oi_timestamp <= " . $dbr->addQuotes( $dbr->timestamp( $start ) );
}
if( $end !== null ) {
- $conds[] = "oi_timestamp >= " . $dbr->addQuotes( $dbr->timestamp( $end ) );
+ $endTS = $end ? $dbr->timestamp( $end ) : "";
+ $conds[] = "oi_timestamp >= " . $dbr->addQuotes( $endTS );
}
if( $limit ) {
$opts['LIMIT'] = $limit;