(bug 5510) Warning produced when using {{SUBPAGENAME}} in some namespaces
authorRob Church <robchurch@users.mediawiki.org>
Wed, 12 Apr 2006 03:40:45 +0000 (03:40 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 12 Apr 2006 03:40:45 +0000 (03:40 +0000)
RELEASE-NOTES
includes/Title.php

index c5454d8..221acb7 100644 (file)
@@ -51,6 +51,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow
 * (bug 5537) Add stub language file for Samogitian (bat-smg); inherits Lithuanian (lt)
 * Don't force edit summaries when a user is editing their own user/talk page
+* (bug 5510) Warning produced when using {{SUBPAGENAME}} in some namespaces
 
 == Compatibility ==
 
index b32d8cc..c0561ac 100644 (file)
@@ -680,7 +680,7 @@ class Title {
         */
        function getSubpageText() {
                global $wgNamespacesWithSubpages;
-               if( $wgNamespacesWithSubpages[ $this->mNamespace ] ) {
+               if( isset( $wgNamespacesWithSubpages[ $this->mNamespace ] ) && $wgNamespacesWithSubpages[ $this->mNamespace ] ) {
                        $parts = explode( '/', $this->mTextform );
                        return( $parts[ count( $parts ) - 1 ] );
                } else {