Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5361
bug17056.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, 10:27 PM
2014-11-21 22:27:13 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
bug17056.patch
View Options
Index: includes/specials/SpecialNewpages.php
===================================================================
--- includes/specials/SpecialNewpages.php (revision 102870)
+++ includes/specials/SpecialNewpages.php (working copy)
@@ -298,9 +298,16 @@
$dm = $lang->getDirMark();
$title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title );
- $time = Html::element( 'span', array( 'class' => 'mw-newpages-time' ),
+ $spanTime = Html::element( 'span', array( 'class' => 'mw-newpages-time' ),
$lang->timeanddate( $result->rc_timestamp, true )
);
+ $time = Linker::linkKnown(
+ $title,
+ $spanTime,
+ array(),
+ array( 'oldid' => $result->rc_this_oldid ),
+ array()
+ );
$query = array( 'redirect' => 'no' );
@@ -500,8 +507,8 @@
$tables = array( 'recentchanges', 'page' );
$fields = array(
'rc_namespace', 'rc_title', 'rc_cur_id', 'rc_user', 'rc_user_text',
- 'rc_comment', 'rc_timestamp', 'rc_patrolled','rc_id', 'rc_deleted',
- 'page_len AS length', 'page_latest AS rev_id', 'ts_tags'
+ 'rc_comment', 'rc_timestamp', 'rc_patrolled', 'rc_id', 'rc_deleted',
+ 'page_len AS length', 'page_latest AS rev_id', 'ts_tags', 'rc_this_oldid'
);
$join_conds = array( 'page' => array( 'INNER JOIN', 'page_id=rc_cur_id' ) );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4921
Default Alt Text
bug17056.patch (1 KB)
Attached To
Mode
T19056: list items in Special:NewPages should each link to the first revision of the page
Attached
Detach File
Event Timeline
Log In to Comment