Apply patch from Bug 17056 - list items in Special:NewPages should
each link to the first revision of the page Patch from Umherirrender
This commit is contained in:
parent
7fe27cda53
commit
be284283cf
1 changed files with 9 additions and 2 deletions
|
|
@ -298,9 +298,16 @@ class SpecialNewpages extends IncludableSpecialPage {
|
|||
$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' );
|
||||
|
||||
|
|
@ -501,7 +508,7 @@ class NewPagesPager extends ReverseChronologicalPager {
|
|||
$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'
|
||||
'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' ) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue