aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_search.inc.php')
-rw-r--r--include/functions_search.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php
index 1f7469021..e2d518e0d 100644
--- a/include/functions_search.inc.php
+++ b/include/functions_search.inc.php
@@ -385,10 +385,13 @@ SELECT id
$q_like_clause = get_qsearch_like_clause($q, 'CONVERT(name, CHAR)' );
if (!empty($q_like_clause))
{
+ // search also by url name (without accents)
+ $q_like_clause_url = get_qsearch_like_clause($q, 'url_name' );
$query = '
SELECT id
FROM '.TAGS_TABLE.'
- WHERE '.$q_like_clause;
+ WHERE '.$q_like_clause.'
+ OR '.$q_like_clause_url;
$tag_ids = array_from_query( $query, 'id');
if (!empty($tag_ids))
{ // we got some tags