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

File:
1 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',
Note: See TracChangeset for help on using the changeset viewer.