Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3482
watchlist.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:30 PM
2014-11-21 21:30:29 (UTC+0)
Size
966 B
Referenced Files
None
Subscribers
None
watchlist.patch
View Options
Index: includes/SpecialWatchlist.php
===================================================================
--- includes/SpecialWatchlist.php (revision 18474)
+++ includes/SpecialWatchlist.php (working copy)
@@ -150,10 +150,10 @@
wfAppendToArrayIfNotDefault('namespace', $nameSpace , $defaults, $nondefaults);
if ( $days <= 0 ) {
- $cutoff = false;
+ $andcutoff = '';
$npages = wfMsg( 'watchlistall1' );
} else {
- $cutoff = $dbr->timestamp( time() - intval( $days * 86400 ) );
+ $andcutoff = "AND rc_timestamp > '".$dbr->timestamp( time() - intval( $days * 86400 ) )."'";
/*
$sql = "SELECT COUNT(*) AS n FROM $page, $revision WHERE rev_timestamp>'$cutoff' AND page_id=rev_page";
$res = $dbr->query( $sql, $fname );
@@ -295,8 +295,8 @@
WHERE wl_user=$uid
AND wl_namespace=rc_namespace
AND wl_title=rc_title
- AND rc_timestamp > '$cutoff'
AND rc_cur_id=page_id
+ $andcutoff
$andLatest
$andHideOwn
$andHideBots
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3049
Default Alt Text
watchlist.patch (966 B)
Attached To
Mode
T10350: Watchlist broken on PostgreSQL
Attached
Detach File
Event Timeline
Log In to Comment