diff options
author | plegall <plg@piwigo.org> | 2012-02-01 23:03:35 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-02-01 23:03:35 +0000 |
commit | ae6a63bee0d834888c3b30b5bcc4df2216173c75 (patch) | |
tree | 3a1500e37d9fac65b9dd60bb76fe8c59cceae17e /admin.php | |
parent | 9c4a478b755f01f18b25a209514826632cd6fed4 (diff) |
feature 2561: redesign on album administration screen.
* only one form on the screen and several tabs
* simpler URL pattern : page=album-123-properties / page=album-123-sort_order
/ page=album-123-permissions
* action to associate all photos of an album to another (new) virtual album
was removed. This can be easily done with the new Batch Manager
* notification by email on an album still has to be moved on a new dedicated tab
* action icons (jump to album, manage photos, manage sub-albums, delete album...)
replaced by plain text links
git-svn-id: http://piwigo.org/svn/trunk@13013 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -120,6 +120,18 @@ if (isset($_GET['page']) and preg_match('/^plugin-([^-]*)(?:-(.*))?$/', $_GET['p } } +// ?page=album-134-properties is an clean alias of +// ?page=album&cat_id=134&tab=properties +if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) +{ + $_GET['page'] = 'album'; + $_GET['cat_id'] = $matches[1]; + if (isset($matches[2])) + { + $_GET['tab'] = $matches[2]; + } +} + if (isset($_GET['page']) and preg_match('/^[a-z_]*$/', $_GET['page']) and is_file(PHPWG_ROOT_PATH.'admin/'.$_GET['page'].'.php')) |