1<?php
2/**
3 * Wiki-Style Script - auxiliary plugin
4 * Tells admins (managers and superusers) to install wikiformatstyling instead of wikistyle2html
5 *
6 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 * @author     HokkaidoPerson <dosankomali@yahoo.co.jp>
8 */
9
10if(!defined('DOKU_INC')) die();
11
12
13class action_plugin_wikistyle2html extends DokuWiki_Action_Plugin {
14
15    public function register(Doku_Event_Handler $controller) {
16        $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'alert', array());
17    }
18
19    public function alert(Doku_Event $event, $param) {
20        $message = '<b>[IMPORTANT]</b> The plugin ID wikistyle2html, has been renamed to wikiformatstyling.  The support of wikistyle2html will be discontinued.  Please install wikiformatstyling plugin, then delete wikistyle2html plugin!';
21        if (auth_ismanager()) msg($message);
22    }
23
24}
25