| Index: trunk/phase3/CREDITS |
| — | — | @@ -68,6 +68,7 @@ |
| 69 | 69 | * Juliano F. Ravasi |
| 70 | 70 | * Lucas Garczewski |
| 71 | 71 | * Louperivois |
| | 72 | +* Manuel Menal |
| 72 | 73 | * Marcin Cieślak |
| 73 | 74 | * Marooned |
| 74 | 75 | * Max Semenik |
| Index: trunk/phase3/includes/specials/SpecialMovepage.php |
| — | — | @@ -284,6 +284,7 @@ |
| 285 | 285 | ); |
| 286 | 286 | |
| 287 | 287 | $this->showLogFragment( $this->oldTitle, $wgOut ); |
| | 288 | + $this->showSubpages( $this->oldTitle, $wgOut ); |
| 288 | 289 | |
| 289 | 290 | } |
| 290 | 291 | |
| — | — | @@ -497,4 +498,32 @@ |
| 498 | 499 | LogEventsList::showLogExtract( $out, 'move', $title->getPrefixedText() ); |
| 499 | 500 | } |
| 500 | 501 | |
| | 502 | + function showSubpages( $title, $out ) { |
| | 503 | + global $wgUser; |
| | 504 | + |
| | 505 | + if( !MWNamespace::hasSubpages( $title->getNamespace() ) ) |
| | 506 | + return; |
| | 507 | + |
| | 508 | + $out->wrapWikiMsg( '== $1 ==', 'movesubpage' ); |
| | 509 | + $subpages = $title->getSubpages(); |
| | 510 | + |
| | 511 | + # No subpages. |
| | 512 | + if ( !( $subpages instanceof TitleArray ) || $subpages->count() == 0 ) { |
| | 513 | + $out->addWikiMsg( 'movenosubpage' ); |
| | 514 | + return; |
| | 515 | + } |
| | 516 | + |
| | 517 | + $skin = $wgUser->getSkin(); |
| | 518 | + $out->addHTML( "<ul>\n" ); |
| | 519 | + |
| | 520 | + foreach( $subpages as $subpage ) { |
| | 521 | + $link = $skin->link( $subpage ); |
| | 522 | + if ( $subpage->isRedirect() ) |
| | 523 | + $link = '<div class="allpagesredirect">' . $link . '</div>' ; |
| | 524 | + |
| | 525 | + $out->addHTML( "<li>$link</li>\n" ); |
| | 526 | + } |
| | 527 | + $out->addHTML( "</ul>\n" ); |
| | 528 | + } |
| 501 | 529 | } |
| | 530 | + |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -111,6 +111,7 @@ |
| 112 | 112 | Mediawiki:Shared-repo-name-REPONAME, where REPONAME is the name in |
| 113 | 113 | $wgForeignFileRepos |
| 114 | 114 | * Special:ListUsers: Sort list of usergroups by alphabet |
| | 115 | +* (bug 16762) Special:Movepage now shows a list of subpages when possible |
| 115 | 116 | |
| 116 | 117 | === Bug fixes in 1.15 === |
| 117 | 118 | * (bug 16968) Special:Upload no longer throws useless warnings. |