aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/event_tracer
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/event_tracer
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 'plugins/event_tracer')
-rw-r--r--plugins/event_tracer/main.inc.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/event_tracer/main.inc.php b/plugins/event_tracer/main.inc.php
index 1eb89f094..0976cae1c 100644
--- a/plugins/event_tracer/main.inc.php
+++ b/plugins/event_tracer/main.inc.php
@@ -11,12 +11,10 @@ class EventTracer
{
var $me_working;
var $my_config;
- var $my_id;
- function EventTracer($id)
+ function EventTracer()
{
$this->me_working=0;
- $this->my_id=$id;
}
function load_config()
@@ -83,14 +81,14 @@ class EventTracer
array_push($menu,
array(
'NAME' => 'Event Tracer',
- 'URL' => get_admin_plugin_menu_link($this->my_id, 'tracer_admin')
+ 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/tracer_admin.php')
)
);
return $menu;
}
}
-$obj = new EventTracer($plugin['id']);
+$obj = new EventTracer();
$obj->load_config();
add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'plugin_admin_menu') );