Ignore:
Timestamp:
Mar 25, 2010, 11:38:09 PM (14 years ago)
Author:
patdenice
Message:

Move set_tabsheet function for plugins pages to plugins class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/plugins.class.php

    r5196 r5367  
    3939      $this->db_plugins_by_id[$db_plugin['id']] = $db_plugin;
    4040    }
     41  }
     42
     43  /**
     44   * Set tabsheet for plugins pages.
     45   * @param string selected page.
     46   */
     47  function set_tabsheet($selected)
     48  {
     49    include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
     50
     51    $link = get_root_url().'admin.php?page=';
     52
     53    $tabsheet = new tabsheet();
     54    $tabsheet->add('plugins_list', l10n('Plugin list'), $link.'plugins_list');
     55    $tabsheet->add('plugins_update', l10n('Check for updates'), $link.'plugins_update');
     56    $tabsheet->add('plugins_new', l10n('Other plugins'), $link.'plugins_new');
     57    $tabsheet->select($selected);
     58    $tabsheet->assign();
    4159  }
    4260
Note: See TracChangeset for help on using the changeset viewer.