register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'set_home', array()); $controller->register_hook('MEDIAMANAGER_STARTED', 'BEFORE', $this, 'set_home', array()); $controller->register_hook('DETAIL_STARTED', 'BEFORE', $this, 'set_home', array()); } /** * * @param Doku_Event $event * @param $params * The path are initialized in {@link init_paths} */ function set_home(Doku_Event $event, $params) { // See also: https://www.dokuwiki.org/devel:preload // global $conf; // $conf['mediadir']="D:/dokuwiki/website/media"; // $conf['datadir']="D:/dokuwiki/website/pages"; } }