Ignore:
Timestamp:
Jan 18, 2007, 3:09:31 AM (18 years ago)
Author:
rvelices
Message:

plugin simplification: adding admin links does not require the plugin_id anymore...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/add_index/main.admin.inc.php

    r1705 r1731  
    3434class AdminAddIndex extends AddIndex
    3535{
    36   var $my_id;
    3736  function load_params()
    3837  {
     
    6463      (
    6564        'CAPTION' => l10n('Advanced_Add_Index'),
    66         'URL' => get_admin_plugin_menu_link($this->my_id, 'admin/main_page').'&overwrite'
     65        'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&overwrite'
    6766      ));
    6867
     
    7776        array
    7877        (
    79           'U_HREF' => get_admin_plugin_menu_link($this->my_id, 'admin/main_page').'&site_id='.$site_id,
     78          'U_HREF' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&site_id='.$site_id,
    8079          'U_CAPTION' => l10n('Manager_Add_Index'),
    8180          'U_HINT' => l10n('Add_Index')
     
    9190        array(
    9291          'NAME' => l10n('Menu_Add_Index'),
    93           'URL' => get_admin_plugin_menu_link($this->my_id, 'admin/admin_menu')
     92          'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin_menu.php')
    9493        )
    9594      );
     
    10099// Create object
    101100$add_index = new AdminAddIndex();
    102 $add_index->my_id = $plugin['id'];
    103101
    104102// Load Add Index parameters
Note: See TracChangeset for help on using the changeset viewer.