Changeset 9359 for trunk/plugins
- Timestamp:
- Feb 23, 2011, 10:35:32 AM (13 years ago)
- Location:
- trunk/plugins/LocalFilesEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/LocalFilesEditor/admin.php
r8728 r9359 26 26 include_once(LOCALEDIT_PATH.'functions.inc.php'); 27 27 load_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__)); 29 29 30 30 // +-----------------------------------------------------------------------+ … … 39 39 $tabsheet->add('localconf', 40 40 l10n('locfiledit_onglet_localconf'), 41 $my_base_url.' &tab=localconf');41 $my_base_url.'-localconf'); 42 42 $tabsheet->add('css', 43 43 l10n('locfiledit_onglet_css'), 44 $my_base_url.' &tab=css');44 $my_base_url.'-css'); 45 45 $tabsheet->add('tpl', 46 46 l10n('locfiledit_onglet_tpl'), 47 $my_base_url.' &tab=tpl');47 $my_base_url.'-tpl'); 48 48 $tabsheet->add('lang', 49 49 l10n('locfiledit_onglet_lang'), 50 $my_base_url.' &tab=lang');50 $my_base_url.'-lang'); 51 51 $tabsheet->add('plug', 52 52 l10n('locfiledit_onglet_plug'), 53 $my_base_url.' &tab=plug');53 $my_base_url.'-plug'); 54 54 $tabsheet->select($page['tab']); 55 55 $tabsheet->assign(); … … 236 236 'OPTIONS' => $options, 237 237 'SELECTED' => $selected, 238 'NEW_FILE_URL' => $my_base_url.' &tab=tpl&newfile',238 'NEW_FILE_URL' => $my_base_url.'-tpl&newfile', 239 239 'NEW_FILE_CLASS' => empty($edited_file) ? '' : 'top_right')); 240 240 … … 366 366 367 367 $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'], 369 369 'LOCALEDIT_PATH' => LOCALEDIT_PATH, 370 370 'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'off', -
trunk/plugins/LocalFilesEditor/main.inc.php
r8728 r9359 36 36 function localfiles_admin_menu($menu) 37 37 { 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 41 46 return $menu; 42 47 }
Note: See TracChangeset
for help on using the changeset viewer.