From 3d8f6fbf309cdba9215ba98ac982625dd3e6628b Mon Sep 17 00:00:00 2001 From: Simon DELAGE Date: Sat, 3 Oct 2015 16:40:29 +0200 Subject: [PATCH] Fixed issue #16 'DOKUWIKI_STARTED' event is never triggered on image details page. Added 'DETAIL_STARTED' event hook to initialize plugin. --- action.php | 1 + plugin.info.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/action.php b/action.php index 4a49791..ad568e3 100644 --- a/action.php +++ b/action.php @@ -17,6 +17,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{ function register(&$controller) { $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'init',array()); + $controller->register_hook('DETAIL_STARTED', 'AFTER', $this, 'init',array()); $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'redirect',array()); $controller->register_hook('ACTION_ACT_PREPROCESS', 'AFTER', $this, 'acl',array()); $controller->register_hook('COMMON_USER_LINK', 'AFTER', $this, 'replaceUserLink',array()); diff --git a/plugin.info.txt b/plugin.info.txt index a91ff8f..dbaf5e8 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base userhomepage author Simon Delage email simon.geekitude@gmail.com -date 2015-08-20 +date 2015-10-03 name User Homepage desc Automatically create user's private namespace and/or public page and redirects users to private namespace on login. url https://www.dokuwiki.org/plugin:userhomepage