mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
- fix: quick search error if the query term contained " or '
- optimized sql query in sync_users (called every time on admin page) - a lot faster when #user_cache_categories is big - added function Template->delete_block_vars (opposite of assign_block_vars) git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2094 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -223,13 +223,13 @@ if (count($categories) > 0)
|
||||
'<br />'
|
||||
),
|
||||
'DESCRIPTION' =>
|
||||
trigger_event('render_category_literal_description',
|
||||
trigger_event('render_category_description',
|
||||
trigger_event('render_category_literal_description',
|
||||
trigger_event('render_category_description',
|
||||
@$category['comment'])),
|
||||
'NAME' => $name,
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
//plugins need to add/modify sth in this loop ?
|
||||
trigger_action('loc_index_category_thumbnail',
|
||||
$category, 'categories.category' );
|
||||
@@ -314,8 +314,8 @@ if (count($categories) > 0)
|
||||
}
|
||||
|
||||
$template->assign_var_from_handle('CATEGORIES', 'thumbnails');
|
||||
unset( $template->_tpldata['thumbnails.'] );//maybe write a func for that
|
||||
$template->delete_block_vars('thumbnails', true); // category_default reuse them
|
||||
}
|
||||
trigger_action('loc_end_index_category_thumbnails', $categories);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user