Ignore:
Timestamp:
Jun 18, 2014, 9:51:42 PM (10 years ago)
Author:
rvelices
Message:

since number of accepted args not required for add_event_handler, simplify calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/add_core_tabs.inc.php

    r26461 r28714  
    2222// +-----------------------------------------------------------------------+
    2323
    24 add_event_handler('tabsheet_before_select', 'add_core_tabs', 0, 2);
     24add_event_handler('tabsheet_before_select', 'add_core_tabs', 0);
    2525
    2626function add_core_tabs($sheets, $tab_id)
     
    3535      $sheets['notification'] = array('caption' => '<span class="icon-mail-alt"></span>'.l10n('Notification'), 'url' => $admin_album_base_url.'-notification');
    3636      break;
    37      
     37
    3838    case 'albums':
    3939      global $my_base_url;
     
    4242      $sheets['permalinks'] = array('caption' => '<span class="icon-link"></span>'.l10n('Permalinks'), 'url' => $my_base_url.'permalinks');
    4343      break;
    44      
     44
    4545    case 'batch_manager':
    4646      global $manager_link;
     
    4848      $sheets['unit'] = array('caption' => l10n('unit mode'), 'url' => $manager_link.'unit');
    4949      break;
    50      
     50
    5151    case 'cat_options':
    5252      global $link_start, $conf;
     
    5858        $sheets['representative'] = array('caption' => l10n('Representative'), 'url' => $link_start.'cat_options&amp;section=representative');
    5959      break;
    60      
     60
    6161    case 'comments':
    6262      $sheets[''] = array('caption' => l10n('User comments'), 'url' => '');
     
    8080      $sheets['default'] = array('caption' => l10n('Guest Settings'), 'url' => $conf_link.'default');
    8181      break;
    82      
     82
    8383    case 'help':
    8484      global $help_link;
     
    8989      $sheets['misc'] = array('caption' => l10n('Miscellaneous'), 'url' => $help_link.'misc');
    9090      break;
    91      
     91
    9292    case 'history':
    9393      global $link_start;
     
    9595      $sheets['history'] = array('caption' => '<span class="icon-search"></span>'.l10n('Search'), 'url' => $link_start.'history');
    9696      break;
    97      
     97
    9898    case 'languages':
    9999      global $my_base_url;
     
    102102      $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Add New Language'), 'url' => $my_base_url.'&amp;tab=new');
    103103      break;
    104      
     104
    105105    case 'nbm':
    106106      global $base_url;
     
    109109      $sheets['send'] = array('caption' => l10n('Send'), 'url' => $base_url.'?page=notification_by_mail&amp;mode=send');
    110110      break;
    111      
     111
    112112    case 'photo':
    113113      global $admin_photo_base_url;
     
    115115      $sheets['coi'] = array('caption' => '<span class="icon-crop"></span>'.l10n('Center of interest'), 'url' => $admin_photo_base_url.'-coi');
    116116      break;
    117      
     117
    118118    case 'photos_add':
    119119      global $conf;
     
    123123        $sheets['ftp'] = array('caption' => '<span class="icon-exchange"></span>'.l10n('FTP + Synchronization'), 'url' => PHOTOS_ADD_BASE_URL.'&amp;section=ftp');
    124124      break;
    125      
     125
    126126    case 'plugins':
    127127      global $my_base_url;
     
    130130      $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Other plugins'), 'url' => $my_base_url.'&amp;tab=new');
    131131      break;
    132      
     132
    133133    case 'rating':
    134134      $sheets['rating'] = array('caption' => l10n('Photos'), 'url' => get_root_url().'admin.php?page=rating');
    135135      $sheets['rating_user'] = array('caption' => l10n('Users'), 'url' => get_root_url().'admin.php?page=rating_user');
    136136      break;
    137      
     137
    138138    case 'themes':
    139139      global $my_base_url;
     
    142142      $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Add New Theme'), 'url' => $my_base_url.'&amp;tab=new');
    143143      break;
    144      
     144
    145145    case 'updates':
    146146      global $my_base_url;
     
    149149      break;
    150150  }
    151  
     151
    152152  return $sheets;
    153153}
Note: See TracChangeset for help on using the changeset viewer.