mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 16:42:59 +02:00
feature 2594: redesign on album permission screen. The choice "public/private"
is not on the "properties" tab anymore. Simpler ergonomy to select grant users and groups. git-svn-id: http://piwigo.org/svn/trunk@13580 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+1
-12
@@ -144,10 +144,6 @@ if (isset($_POST['submit']))
|
||||
{
|
||||
set_cat_visible(array($_GET['cat_id']), $_POST['visible']);
|
||||
}
|
||||
if ($cat_info['status'] != $_POST['status'] )
|
||||
{
|
||||
set_cat_status(array($_GET['cat_id']), $_POST['status']);
|
||||
}
|
||||
|
||||
// in case the use moves his album to the gallery root, we force
|
||||
// $_POST['parent'] from 0 to null to be compared with
|
||||
@@ -163,10 +159,7 @@ if (isset($_POST['submit']))
|
||||
move_categories( array($_GET['cat_id']), $_POST['parent'] );
|
||||
}
|
||||
|
||||
// we redirect to hide/show the "permissions" tab if the category status
|
||||
// has changed
|
||||
$_SESSION['page_infos'] = array(l10n('Album updated successfully'));
|
||||
redirect($admin_album_base_url);
|
||||
array_push($page['infos'], l10n('Album updated successfully'));
|
||||
}
|
||||
elseif (isset($_POST['set_random_representant']))
|
||||
{
|
||||
@@ -226,10 +219,6 @@ $template->assign(
|
||||
'CAT_ID' => $category['id'],
|
||||
'CAT_NAME' => @htmlspecialchars($category['name']),
|
||||
'CAT_COMMENT' => @htmlspecialchars($category['comment']),
|
||||
|
||||
'status_values' => array('public','private'),
|
||||
|
||||
'CAT_STATUS' => $category['status'],
|
||||
'CAT_VISIBLE' => boolean_to_string($category['visible']),
|
||||
|
||||
'U_JUMPTO' => make_index_url(
|
||||
|
||||
Reference in New Issue
Block a user