r13597 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13596‎ | r13597 | r13598 >
Date:03:40, 12 April 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5510) Warning produced when using {{SUBPAGENAME}} in some namespaces
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -680,7 +680,7 @@
681681 */
682682 function getSubpageText() {
683683 global $wgNamespacesWithSubpages;
684 - if( $wgNamespacesWithSubpages[ $this->mNamespace ] ) {
 684+ if( isset( $wgNamespacesWithSubpages[ $this->mNamespace ] ) && $wgNamespacesWithSubpages[ $this->mNamespace ] ) {
685685 $parts = explode( '/', $this->mTextform );
686686 return( $parts[ count( $parts ) - 1 ] );
687687 } else {
Index: trunk/phase3/RELEASE-NOTES
@@ -51,6 +51,7 @@
5252 * Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow
5353 * (bug 5537) Add stub language file for Samogitian (bat-smg); inherits Lithuanian (lt)
5454 * Don't force edit summaries when a user is editing their own user/talk page
 55+* (bug 5510) Warning produced when using {{SUBPAGENAME}} in some namespaces
5556
5657 == Compatibility ==
5758

Follow-up revisions

RevisionCommit summaryAuthorDate
r13598(bug 5510) Warning produced when using {{SUBPAGENAME}} in some namespacesrobchurch03:51, 12 April 2006

Status & tagging log