mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
- fix plugin menu link broken with xamp (realpath behaves differently)
- complete quick search rewriting - now we can quote phrases as in google "New York" is not the same as New York - user comments not searched anymore (faster) - the big full text query does not use joins anymore (faster) - related tags not shown on the index page, but now you can see the matching tags and matching categories git-svn-id: http://piwigo.org/svn/trunk@2135 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -329,6 +329,10 @@ SELECT DISTINCT(id)
|
||||
else
|
||||
{
|
||||
$page['items'] = $search_result['items'];
|
||||
if ( isset($search_result['qs']) )
|
||||
{//save the details of the query search
|
||||
$page['qsearch_details'] = $search_result['qs'];
|
||||
}
|
||||
}
|
||||
|
||||
$page = array_merge(
|
||||
@@ -519,7 +523,8 @@ SELECT id,file
|
||||
|
||||
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
|
||||
$page['meta_robots']=array();
|
||||
if ( isset($page['chronology_field']) or isset($page['flat'])
|
||||
if ( isset($page['chronology_field'])
|
||||
or ( isset($page['flat']) and isset($page['category']) )
|
||||
or 'list'==$page['section'] or 'recent_pics'==$page['section'] )
|
||||
{
|
||||
$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
|
||||
|
||||
Reference in New Issue
Block a user