From: robin Date: Wed, 30 May 2012 21:06:26 +0000 (+0200) Subject: Change of Title->exists() to Title->isKnown() for subpage links X-Git-Tag: 1.31.0-rc.0~23380^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f99f4945a5413f1c6840bcae00b47a734b339da2;p=lhc%2Fweb%2Fwiklou.git Change of Title->exists() to Title->isKnown() for subpage links 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 --- diff --git a/includes/Skin.php b/includes/Skin.php index 64cf569796..5d54a3f42c 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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 )