Page MenuHomePhabricator

bug17056.patch

Authored By
bzimport
Nov 21 2014, 10:27 PM
Size
1 KB
Referenced Files
None
Subscribers
None

bug17056.patch

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4921
Default Alt Text
bug17056.patch (1 KB)

Event Timeline