1<?php
2
3if (!defined('DOKU_INC')) die();
4require_once(__DIR__ . '/../ComboStrap/PluginUtility.php');
5
6/**
7 * Set the home of the web site documentation
8 */
9class action_plugin_combo_directorylayout extends DokuWiki_Action_Plugin
10{
11
12    /**
13     * @param Doku_Event_Handler $controller
14     */
15    function register(Doku_Event_Handler $controller)
16    {
17
18        $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'set_home', array());
19        $controller->register_hook('MEDIAMANAGER_STARTED', 'BEFORE', $this, 'set_home', array());
20        $controller->register_hook('DETAIL_STARTED', 'BEFORE', $this, 'set_home', array());
21    }
22
23    /**
24     *
25     * @param Doku_Event $event
26     * @param $params
27     * The path are initialized in {@link init_paths}
28     */
29    function set_home(Doku_Event $event, $params)
30    {
31        // See also: https://www.dokuwiki.org/devel:preload
32//        global $conf;
33//        $conf['mediadir']="D:/dokuwiki/website/media";
34//        $conf['datadir']="D:/dokuwiki/website/pages";
35    }
36
37
38}
39