Mediawiki:Shared-repo-name-REPONAME, where REPONAME is the name in
$wgForeignFileRepos
* Special:ListUsers: Sort list of usergroups by alphabet
+* (bug 16762) Special:Movepage now shows a list of subpages when possible
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
);
$this->showLogFragment( $this->oldTitle, $wgOut );
+ $this->showSubpages( $this->oldTitle, $wgOut );
}
LogEventsList::showLogExtract( $out, 'move', $title->getPrefixedText() );
}
+ function showSubpages( $title, $out ) {
+ global $wgUser;
+
+ if( !MWNamespace::hasSubpages( $title->getNamespace() ) )
+ return;
+
+ $out->wrapWikiMsg( '== $1 ==', 'movesubpage' );
+ $subpages = $title->getSubpages();
+
+ # No subpages.
+ if ( !( $subpages instanceof TitleArray ) || $subpages->count() == 0 ) {
+ $out->addWikiMsg( 'movenosubpage' );
+ return;
+ }
+
+ $skin = $wgUser->getSkin();
+ $out->addHTML( "<ul>\n" );
+
+ foreach( $subpages as $subpage ) {
+ $link = $skin->link( $subpage );
+ if ( $subpage->isRedirect() )
+ $link = '<div class="allpagesredirect">' . $link . '</div>' ;
+
+ $out->addHTML( "<li>$link</li>\n" );
+ }
+ $out->addHTML( "</ul>\n" );
+ }
}
+