aboutsummaryrefslogtreecommitdiffstats
path: root/admin/album.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-03-17 00:47:17 +0000
committerplegall <plg@piwigo.org>2012-03-17 00:47:17 +0000
commitb09c66fdc3aedc5d09a8b082facbf58f5b5e0478 (patch)
treeb7c1ff0637f044248c284f8a2da3f1edc9d4427d /admin/album.php
parentf3e2beed8cd7e3042b2d82ad9c6efc012a32fe13 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/album.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/album.php b/admin/album.php
index 1097f04f5..cb434e061 100644
--- a/admin/album.php
+++ b/admin/album.php
@@ -43,6 +43,11 @@ SELECT *
;';
$category = pwg_db_fetch_assoc(pwg_query($query));
+if (!isset($category['id']))
+{
+ die("unknown album");
+}
+
// +-----------------------------------------------------------------------+
// | Tabs |
// +-----------------------------------------------------------------------+
@@ -59,12 +64,7 @@ if (isset($_GET['tab']))
$tabsheet = new tabsheet();
$tabsheet->add('properties', l10n('Properties'), $admin_album_base_url.'-properties');
$tabsheet->add('sort_order', l10n('Manage photo ranks'), $admin_album_base_url.'-sort_order');
-
-if ('private' == $category['status'])
-{
- $tabsheet->add('permissions', l10n('Permissions'), $admin_album_base_url.'-permissions');
-}
-
+$tabsheet->add('permissions', l10n('Permissions'), $admin_album_base_url.'-permissions');
$tabsheet->select($page['tab']);
$tabsheet->assign();