summaryrefslogtreecommitdiff
path: root/includes/PageQueryPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/PageQueryPage.php')
-rw-r--r--includes/PageQueryPage.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/PageQueryPage.php b/includes/PageQueryPage.php
index a2091e8b..892ff259 100644
--- a/includes/PageQueryPage.php
+++ b/includes/PageQueryPage.php
@@ -18,8 +18,9 @@ class PageQueryPage extends QueryPage {
global $wgContLang;
$title = Title::makeTitleSafe( $row->namespace, $row->title );
$text = $row->title;
- if ($title instanceof Title)
- $text = $wgContLang->convert( $title->getPrefixedText() );
- return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') );
+ if ( $title instanceof Title ) {
+ $text = $wgContLang->convert( $title->getPrefixedText() );
+ }
+ return $skin->link( $title, htmlspecialchars( $text ), array(), array(), array('known', 'noclasses') );
}
}