diff options
Diffstat (limited to 'includes/SpecialShortpages.php')
-rw-r--r-- | includes/SpecialShortpages.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index d8e13c7b..34b3505b 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -65,6 +65,9 @@ class ShortPagesPage extends QueryPage { $dm = $wgContLang->getDirMark(); $title = Title::makeTitleSafe( $result->namespace, $result->title ); + if ( !$title ) { + return '<!-- Invalid title ' . htmlspecialchars( "{$result->namespace}:{$result->title}" ). '-->'; + } $hlink = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' ); $plink = $this->isCached() ? $skin->makeLinkObj( $title ) |