Fatal error on some pages when calculating subpage subtitle, reported in #wikimedia...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 22 Apr 2008 16:34:43 +0000 (16:34 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 22 Apr 2008 16:34:43 +0000 (16:34 +0000)
RELEASE-NOTES
includes/Skin.php

index d4d99e3..683c458 100644 (file)
@@ -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 ===
 
index 0b9e3be..5abb40b 100644 (file)
@@ -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) {