Ignore:
Timestamp:
Jul 23, 2012, 1:52:18 PM (12 years ago)
Author:
mistic100
Message:

Merged revision(s) 16928 from trunk:
feature 2703: make it easy for plugins to add tabs in admin screens
centralize all core tabs in one file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin/include/tabsheet.class.php

    r16926 r16929  
    9090  {
    9191    $this->sheets = trigger_event('tabsheet_before_select', $this->sheets, $this->uniqid);
     92    if (!array_key_exists($name, $this->sheets))
     93    {
     94      $keys = array_keys($this->sheets);
     95      $name = $keys[0];
     96    }
    9297    $this->selected = $name;
    9398  }
Note: See TracChangeset for help on using the changeset viewer.