From: Aaron Schulz Date: Tue, 3 Mar 2009 22:56:17 +0000 (+0000) Subject: Add mw-redirect class to subpage links as needed X-Git-Tag: 1.31.0-rc.0~42622 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=00190a190c01fd942d1987cdf5866fd311ff7b58;p=lhc%2Fweb%2Fwiklou.git Add mw-redirect class to subpage links as needed --- 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" );