Changeset 9359 for trunk/plugins


Ignore:
Timestamp:
Feb 23, 2011, 10:35:32 AM (13 years ago)
Author:
plg
Message:

feature 2200: LocalFilesEditor plugin now uses the new cleaner URL alias for administration pages

Location:
trunk/plugins/LocalFilesEditor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.php

    r8728 r9359  
    2626include_once(LOCALEDIT_PATH.'functions.inc.php');
    2727load_language('plugin.lang', LOCALEDIT_PATH);
    28 $my_base_url = get_admin_plugin_menu_link(__FILE__);
     28$my_base_url = get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__));
    2929
    3030// +-----------------------------------------------------------------------+
     
    3939$tabsheet->add('localconf',
    4040               l10n('locfiledit_onglet_localconf'),
    41                $my_base_url.'&tab=localconf');
     41               $my_base_url.'-localconf');
    4242$tabsheet->add('css',
    4343               l10n('locfiledit_onglet_css'),
    44                $my_base_url.'&tab=css');
     44               $my_base_url.'-css');
    4545$tabsheet->add('tpl',
    4646               l10n('locfiledit_onglet_tpl'),
    47                $my_base_url.'&tab=tpl');
     47               $my_base_url.'-tpl');
    4848$tabsheet->add('lang',
    4949               l10n('locfiledit_onglet_lang'),
    50                $my_base_url.'&tab=lang');
     50               $my_base_url.'-lang');
    5151$tabsheet->add('plug',
    5252               l10n('locfiledit_onglet_plug'),
    53                $my_base_url.'&tab=plug');
     53               $my_base_url.'-plug');
    5454$tabsheet->select($page['tab']);
    5555$tabsheet->assign();
     
    236236      'OPTIONS' => $options,
    237237      'SELECTED' => $selected,
    238       'NEW_FILE_URL' => $my_base_url.'&tab=tpl&newfile',
     238      'NEW_FILE_URL' => $my_base_url.'-tpl&newfile',
    239239      'NEW_FILE_CLASS' => empty($edited_file) ? '' : 'top_right'));
    240240
     
    366366
    367367$template->assign(array(
    368   'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=plugin&section=LocalFilesEditor%2Fadmin.php&tab=' . $page['tab'],
     368  'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=plugin-LocalFilesEditor-'.$page['tab'],
    369369  'LOCALEDIT_PATH' => LOCALEDIT_PATH,
    370370  'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'off',
  • trunk/plugins/LocalFilesEditor/main.inc.php

    r8728 r9359  
    3636function localfiles_admin_menu($menu)
    3737{
    38   array_push($menu, array(
    39     'NAME' => 'LocalFiles Editor',
    40     'URL' => get_admin_plugin_menu_link(LOCALEDIT_PATH . 'admin.php')));
     38  array_push(
     39    $menu,
     40    array(
     41      'NAME' => 'LocalFiles Editor',
     42      'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__))
     43      )
     44    );
     45 
    4146  return $menu;
    4247}
Note: See TracChangeset for help on using the changeset viewer.