Change of Title->exists() to Title->isKnown() for subpage links
authorrobin <robinp.1273@gmail.com>
Wed, 30 May 2012 21:06:26 +0000 (23:06 +0200)
committerrobin <robinp.1273@gmail.com>
Wed, 30 May 2012 21:19:34 +0000 (23:19 +0200)
isKnown() calls both exists() and isAlwaysKnown(), so subpage links below the page title are also added for pages that "always exist", as can be changed through a hook

Change-Id: I345bb8e6e611afd53afbc7b2d92910e360f598ee

includes/Skin.php

index 64cf569..5d54a3f 100644 (file)
@@ -727,7 +727,7 @@ abstract class Skin extends ContextSource {
                                        $display .= $link;
                                        $linkObj = Title::newFromText( $growinglink );
 
-                                       if ( is_object( $linkObj ) && $linkObj->exists() ) {
+                                       if ( is_object( $linkObj ) && $linkObj->isKnown() ) {
                                                $getlink = Linker::linkKnown(
                                                        $linkObj,
                                                        htmlspecialchars( $display )