From: Aryeh Gregor Date: Tue, 22 Apr 2008 16:34:43 +0000 (+0000) Subject: Fatal error on some pages when calculating subpage subtitle, reported in #wikimedia... X-Git-Tag: 1.31.0-rc.0~48132 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=1fa19645a923f81f92c83416b94ff40e1d70f28b;p=lhc%2Fweb%2Fwiklou.git Fatal error on some pages when calculating subpage subtitle, reported in #wikimedia-tech --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d4d99e39f2..683c4588c3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -209,6 +209,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before * (bug 13796) Show links to parent pages even if some of them are missing * (bug 13816) Filter by main namespace doesn't work on WhatLinksHere +* Fatal error on some pages when calculating subpage subtitle === API changes in 1.13 === diff --git a/includes/Skin.php b/includes/Skin.php index 0b9e3be7fd..5abb40b930 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -896,7 +896,7 @@ END; $growinglink .= $link; $display .= $link; $linkObj = Title::newFromText( $growinglink ); - if( $linkObj->exists() ){ + if( is_object( $linkObj ) && $linkObj->exists() ){ $getlink = $this->makeKnownLinkObj( $linkObj, htmlspecialchars( $display ) ); $c++; if ($c>1) {