From 00190a190c01fd942d1987cdf5866fd311ff7b58 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 3 Mar 2009 22:56:17 +0000 Subject: [PATCH] Add mw-redirect class to subpage links as needed --- includes/Title.php | 2 +- includes/specials/SpecialMovepage.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index e1b301e5f5..5b3916ac31 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1640,7 +1640,7 @@ class Title { $options['LIMIT'] = $limit; return $this->mSubpages = TitleArray::newFromResult( $dbr->select( 'page', - array( 'page_id', 'page_namespace', 'page_title' ), + array( 'page_id', 'page_namespace', 'page_title', 'page_is_redirect' ), $conds, __METHOD__, $options diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 2e3bf6ca42..8fcf33a93f 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -234,7 +234,8 @@ class MovePageForm { } if( ($this->oldTitle->hasSubpages() || $this->oldTitle->getTalkPage()->hasSubpages()) - && $this->oldTitle->userCan( 'move-subpages' ) ) { + && $this->oldTitle->userCan( 'move-subpages' ) ) + { global $wgMaximumMovedPages, $wgLang; $wgOut->addHTML( " @@ -521,9 +522,6 @@ class MovePageForm { foreach( $subpages as $subpage ) { $link = $skin->link( $subpage ); - if ( $subpage->isRedirect() ) - $link = '
' . $link . '
' ; - $out->addHTML( "
  • $link
  • \n" ); } $out->addHTML( "\n" ); -- 2.20.1