diff options
Diffstat (limited to 'lib/plugins/plugin/admin.php')
-rw-r--r-- | lib/plugins/plugin/admin.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php index 4f8cc01a2..c662b565a 100644 --- a/lib/plugins/plugin/admin.php +++ b/lib/plugins/plugin/admin.php @@ -13,8 +13,6 @@ if(!defined('DOKU_INC')) die(); // - allow a plugin to contain extras to be copied to the current template (extra/tpl/) // - to images (lib/images/) [ not needed, should go in lib/plugin/images/ ] -if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); -require_once(DOKU_PLUGIN.'admin.php'); require_once(DOKU_PLUGIN."/plugin/classes/ap_manage.class.php"); //--------------------------[ GLOBALS ]------------------------------------------------ @@ -111,7 +109,7 @@ class admin_plugin_plugin extends DokuWiki_Admin_Plugin { $class = 'ap_manage'; } - $this->handler = & new $class($this, $this->plugin); + $this->handler = new $class($this, $this->plugin); $this->msg = $this->handler->process(); } @@ -124,7 +122,7 @@ class admin_plugin_plugin extends DokuWiki_Admin_Plugin { $this->setupLocale(); $this->_get_plugin_list(); - if ($this->handler === NULL) $this->handler = & new ap_manage($this, $this->plugin); + if ($this->handler === NULL) $this->handler = new ap_manage($this, $this->plugin); ptln('<div id="plugin__manager">'); $this->handler->html(); |