Fixed issue #16

'DOKUWIKI_STARTED' event is never triggered on image details page. Added
'DETAIL_STARTED' event hook to initialize plugin.
This commit is contained in:
Simon DELAGE 2015-10-03 16:40:29 +02:00
parent 7058c20dcf
commit 3d8f6fbf30
2 changed files with 2 additions and 1 deletions

View File

@ -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());

View File

@ -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