mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
- user permissions ask update at each admin page generation. Table
user_forbidden must be updated only if current user is not in administrative section - bug fixed : category.php, error on page title when non category selected - admin/search : bug on variable $PHP_SELF, replaced by $_SERVER['PHP_SELF'] - admin/user_perm : inheritence management. When a category become authorized, all parent categories become authorized, when a category become forbidden, all child category become forbidden - no more recursivity in delete_categories function - new function get_fs_directories for future new method of synchronization - new function get_uppercat_ids replacing several pieces of code doing the same - new function get_fulldirs used for metadata function get_filelist and future new method of synchronization - new function get_fs for future new method of synchronization - typo correction on lang item "about_message" - no link to category privacy status management on user permission anymore (giving the menu item instead) git-svn-id: http://piwigo.org/svn/trunk@657 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+9
-5
@@ -102,13 +102,17 @@ include(PHPWG_ROOT_PATH.'include/page_header.php');
|
||||
|
||||
$template->set_filenames( array('category'=>'category.tpl') );
|
||||
//-------------------------------------------------------------- category title
|
||||
if ( !isset( $page['title'] ) )
|
||||
if (!isset($page['cat']))
|
||||
{
|
||||
$page['title'] = $lang['no_category'];
|
||||
$template_title = $lang['no_category'];
|
||||
}
|
||||
$template_title = get_cat_display_name($page['cat_name'],
|
||||
'category.php?cat=',
|
||||
false);;
|
||||
else
|
||||
{
|
||||
$template_title = get_cat_display_name($page['cat_name'],
|
||||
'category.php?cat=',
|
||||
false);
|
||||
}
|
||||
|
||||
if ( isset( $page['cat_nb_images'] ) and $page['cat_nb_images'] > 0 )
|
||||
{
|
||||
$template_title.= ' ['.$page['cat_nb_images'].']';
|
||||
|
||||
Reference in New Issue
Block a user