summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authormatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-06-16 18:34:25 +0200
committermatthiasgrimm <matthiasgrimm@users.sourceforge.net>2005-06-16 18:34:25 +0200
commitd67ca2c0f7f6b75608386c226d33afdda872757c (patch)
tree6865ecca6d30cf4ae70a68ca85f8f22161176f33 /inc/search.php
parentb59a406b93334a3a9ba2c1f2529a3bc7123361f4 (diff)
downloadrpg-d67ca2c0f7f6b75608386c226d33afdda872757c.tar.gz
rpg-d67ca2c0f7f6b75608386c226d33afdda872757c.tar.bz2
media reference check part 2
Part 1 only checks for the existance of references. Part 2 will show where this references are so that the user could easily find them. Both parts are configurable: refcheck darcs-hash:20050616163425-7ef76-a7fce6cd1ef5d2cc2e4ac3b869969a65c671770a.gz
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php
index 0caae3d7c..e61d04491 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -355,7 +355,7 @@ function search_reference(&$data,$base,$file,$type,$lvl,$opts){
//'false' will skip subdirectories to speed search up.
if(count($data) >= $conf['refcount']) return false;
- $reg = '{{ *'.$opts['query'].' *(\|.*)?}}';
+ $reg = '\{\{ *\:?'.$opts['query'].' *(\|.*)?\}\}';
search_regex($data,$base,$file,$reg,array($opts['query']));
return true;
}