Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5540
WL2.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:32 PM
2014-11-21 22:32:10 (UTC+0)
Size
765 B
Referenced Files
None
Subscribers
None
WL2.diff
View Options
Index: includes/specials/SpecialWatchlist.php
===================================================================
--- includes/specials/SpecialWatchlist.php (revision 50058)
+++ includes/specials/SpecialWatchlist.php (working copy)
@@ -392,10 +392,10 @@
* Returns html
*/
function wlCutoffLinks( $days, $page = 'Watchlist', $options = array() ) {
- global $wgLang;
+ global $wgLang, $wgRCLinkDays;
$hours = array( 1, 2, 6, 12 );
- $days = array( 1, 3, 7 );
+ $days = $wgRCLinkDays;
$i = 0;
foreach( $hours as $h ) {
$hours[$i++] = wlHoursLink( $h, $page, $options );
@@ -408,7 +408,7 @@
array('parseinline', 'replaceafter'),
$wgLang->pipeList( $hours ),
$wgLang->pipeList( $days ),
- wlDaysLink( 0, $page, $options ) );
+ '' );
}
/**
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5090
Default Alt Text
WL2.diff (765 B)
Attached To
Mode
T19867: $wgRCLinkDays perfect for SpecialWatchlist.php too
Attached
Detach File
Event Timeline
Log In to Comment