summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 12ca28c1f..693bcd68e 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -329,7 +329,13 @@ function html_search(){
print '<ul class="search_quickhits">';
foreach($data as $id){
print '<li> ';
- print html_wikilink(':'.$id,noNS($id));
+ $ns = getNS($id);
+ if($ns){
+ $name = shorten(noNS($id), ' ('.$ns.')',30);
+ }else{
+ $name = $id;
+ }
+ print html_wikilink(':'.$id,$name);
print '</li> ';
}
print '</ul> ';