aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/add_index/main.admin.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-18 02:09:31 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-18 02:09:31 +0000
commit4fb42505ece84fa64d5e77436cfdcb792c333006 (patch)
tree46993204daaf9d46784183e51a555314da679828 /plugins/add_index/main.admin.inc.php
parente81260cdec75e196feed698a05cad88236d3ed42 (diff)
plugin simplification: adding admin links does not require the plugin_id anymore...
git-svn-id: http://piwigo.org/svn/trunk@1731 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/add_index/main.admin.inc.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/add_index/main.admin.inc.php b/plugins/add_index/main.admin.inc.php
index 457ea760a..a79d1f237 100644
--- a/plugins/add_index/main.admin.inc.php
+++ b/plugins/add_index/main.admin.inc.php
@@ -33,7 +33,6 @@ if ((!defined('PHPWG_ROOT_PATH')) or (!(defined('IN_ADMIN') and IN_ADMIN)))
class AdminAddIndex extends AddIndex
{
- var $my_id;
function load_params()
{
global $conf;
@@ -63,7 +62,7 @@ class AdminAddIndex extends AddIndex
array
(
'CAPTION' => l10n('Advanced_Add_Index'),
- 'URL' => get_admin_plugin_menu_link($this->my_id, 'admin/main_page').'&amp;overwrite'
+ 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&amp;overwrite'
));
return $advanced_features;
@@ -76,7 +75,7 @@ class AdminAddIndex extends AddIndex
array_push($site_manager_plugin_links,
array
(
- 'U_HREF' => get_admin_plugin_menu_link($this->my_id, 'admin/main_page').'&amp;site_id='.$site_id,
+ 'U_HREF' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&amp;site_id='.$site_id,
'U_CAPTION' => l10n('Manager_Add_Index'),
'U_HINT' => l10n('Add_Index')
));
@@ -90,7 +89,7 @@ class AdminAddIndex extends AddIndex
array_push($menu,
array(
'NAME' => l10n('Menu_Add_Index'),
- 'URL' => get_admin_plugin_menu_link($this->my_id, 'admin/admin_menu')
+ 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin_menu.php')
)
);
return $menu;
@@ -99,7 +98,6 @@ class AdminAddIndex extends AddIndex
// Create object
$add_index = new AdminAddIndex();
-$add_index->my_id = $plugin['id'];
// Load Add Index parameters
$add_index->load_params();