From bd2f6c2fb24eecedecd4bbffae0a92bb5acbece7 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 14 Aug 2008 21:48:26 +0200 Subject: display the (shortened) namespace for page quicksearch When displaying pagename matches in the Ajax quick search or normal search, the namespace of the page is shown behind the pagename. This makes it easier to distinguish the pages when the same namespace is used in different namespaces. To avoid breaking the layout in deep nested namespace hierarchies, the namespace is shortened in the middle when needed. This patch also disables the effect of the useheadings option in the Ajax quick search. After all the results should show what was found and since the search works on pagenames not headings it should show pagenames as result. darcs-hash:20080814194826-7ad00-9add9c1bbbb4f4ede3c6884d37427644b2cddc56.gz --- lib/exe/ajax.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 5d8a0e4e6..b4bd20b70 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -66,7 +66,13 @@ function ajax_qsearch(){ print ''; -- cgit v1.2.3