diff options
author | plegall <plg@piwigo.org> | 2011-02-23 09:35:32 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-02-23 09:35:32 +0000 |
commit | f409eb1c5d749c16622c31eb29f656f840ef9e16 (patch) | |
tree | e63d0177fa553c8b03e8716af6346e18d2889f27 /plugins/LocalFilesEditor/main.inc.php | |
parent | 31fab45f93d516ae4e160db637405dc20d278f23 (diff) |
feature 2200: LocalFilesEditor plugin now uses the new cleaner URL alias for administration pages
git-svn-id: http://piwigo.org/svn/trunk@9359 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/LocalFilesEditor/main.inc.php')
-rw-r--r-- | plugins/LocalFilesEditor/main.inc.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/LocalFilesEditor/main.inc.php b/plugins/LocalFilesEditor/main.inc.php index b66a1c49d..c46099721 100644 --- a/plugins/LocalFilesEditor/main.inc.php +++ b/plugins/LocalFilesEditor/main.inc.php @@ -35,9 +35,14 @@ define('LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/' function localfiles_admin_menu($menu) { - array_push($menu, array( - 'NAME' => 'LocalFiles Editor', - 'URL' => get_admin_plugin_menu_link(LOCALEDIT_PATH . 'admin.php'))); + array_push( + $menu, + array( + 'NAME' => 'LocalFiles Editor', + 'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)) + ) + ); + return $menu; } |