aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/tabsheet.class.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-07-23 11:50:41 +0000
committermistic100 <mistic@piwigo.org>2012-07-23 11:50:41 +0000
commit9a4a9d846e6bd74a61d1ab390ea4deb3224f4170 (patch)
treed3a40b94d272493fa02cf78434509d678c49ef91 /admin/include/tabsheet.class.php
parent7b181f067bd2a02e118e57b4c2fc44e2319ca734 (diff)
feature 2703: make it easy for plugins to add tabs in admin screens
centralize all core tabs in one file git-svn-id: http://piwigo.org/svn/trunk@16928 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/tabsheet.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/tabsheet.class.php b/admin/include/tabsheet.class.php
index 02ee9a3d1..fdeeb2afd 100644
--- a/admin/include/tabsheet.class.php
+++ b/admin/include/tabsheet.class.php
@@ -89,6 +89,11 @@ class tabsheet
function select($name)
{
$this->sheets = trigger_event('tabsheet_before_select', $this->sheets, $this->uniqid);
+ if (!array_key_exists($name, $this->sheets))
+ {
+ $keys = array_keys($this->sheets);
+ $name = $keys[0];
+ }
$this->selected = $name;
}