aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-03-14 23:50:21 +0000
committerrvelices <rv-github@modusoptimus.com>2007-03-14 23:50:21 +0000
commitb654fdac5699b0ad3722444a69c027f5c9f01a1b (patch)
treed3cce6b738193a83a403d038dd20d812580fe7bd /include/functions_search.inc.php
parent04b6fc193dcc756a5f21dafb55814499c6676af7 (diff)
minimal changes (lang, small tpl change and quick search on tag url names in addition to name - handy with accentuated letters)
git-svn-id: http://piwigo.org/svn/trunk@1906 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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