Commit fe1ae125 authored by Krzysztof Kutt's avatar Krzysztof Kutt
Browse files

bugfixing; updates for DokuWiki "Hogfather"

parent 70c0d79d
Showing with 47 additions and 52 deletions
+47 -52
<?php
/**
* Example Action Plugin: Inserts a button into the toolbar
*
* @author Gina Haeussge <osd@foosel.net>
* @author GEIST Research Group <krzysztof.kutt@uj.edu.pl>
*/
......@@ -23,7 +21,7 @@ class action_plugin_sbvr extends DokuWiki_Action_Plugin {
/**
* Register the eventhandlers
*/
public function register(&$controller) {
public function register(Doku_Event_Handler $controller) {
$controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'export', array());
$controller->register_hook('TPL_ACT_UNKNOWN', 'AFTER', $this, 'export', array());
}
......
<?php
/**
*
* Syntax: <TEST> - will be replaced with "Hello World!"
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
* @author GEIST Research Group <krzysztof.kutt@uj.edu.pl>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
......@@ -122,7 +119,7 @@ class syntax_plugin_sbvr extends DokuWiki_Syntax_Plugin {
* @see render()
* @static
*/
function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER :
return null;
......@@ -161,7 +158,7 @@ class syntax_plugin_sbvr extends DokuWiki_Syntax_Plugin {
* @public
* @see handle()
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
global $conf;
global $INFO;
global $ID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment