From 8628c4fa004048e67f75cd638b6be0b26fe3132c Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 9 Sep 2012 13:07:50 +0100 Subject: updated (and added missing) info.txt files --- lib/plugins/info/plugin.info.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/plugins/info') diff --git a/lib/plugins/info/plugin.info.txt b/lib/plugins/info/plugin.info.txt index 2432225f1..b78482e8d 100644 --- a/lib/plugins/info/plugin.info.txt +++ b/lib/plugins/info/plugin.info.txt @@ -1,6 +1,6 @@ author Andreas Gohr email andi@splitbrain.org -date 2008-09-12 +date 2012-02-04 name Info Plugin desc Displays information about various DokuWiki internals url http://dokuwiki.org/plugin:info -- cgit v1.2.3 From 0c2e484f96dbcda5e5d13f3d278a925f9a401fc7 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 9 Sep 2012 13:31:39 +0100 Subject: added missing info.txt parameters, added plugin plugin's info.txt, adjusted old default template's description --- lib/plugins/info/plugin.info.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/plugins/info') diff --git a/lib/plugins/info/plugin.info.txt b/lib/plugins/info/plugin.info.txt index b78482e8d..5c7d583c0 100644 --- a/lib/plugins/info/plugin.info.txt +++ b/lib/plugins/info/plugin.info.txt @@ -1,3 +1,4 @@ +base info author Andreas Gohr email andi@splitbrain.org date 2012-02-04 -- cgit v1.2.3 From 38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Thu, 29 Nov 2012 16:06:43 +0100 Subject: some coding style improvements - removed some dead/unused code - fixed phpdoc - added typing on methods --- lib/plugins/info/syntax.php | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'lib/plugins/info') diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php index 9aedbf0aa..d813aa23a 100644 --- a/lib/plugins/info/syntax.php +++ b/lib/plugins/info/syntax.php @@ -15,20 +15,6 @@ if(!defined('DOKU_INC')) die(); */ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { - /** - * return some info - */ - function getInfo(){ - return array( - 'author' => 'Andreas Gohr', - 'email' => 'andi@splitbrain.org', - 'date' => '2008-09-12', - 'name' => 'Info Plugin', - 'desc' => 'Displays information about various DokuWiki internals', - 'url' => 'http://dokuwiki.org/plugin:info', - ); - } - /** * What kind of syntax are we? */ @@ -114,7 +100,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { * * uses some of the original renderer methods */ - function _plugins_xhtml($type, &$renderer){ + function _plugins_xhtml($type, Doku_Renderer &$renderer){ global $lang; $renderer->doc .= '
    '; @@ -152,7 +138,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { * * uses some of the original renderer methods */ - function _helpermethods_xhtml(&$renderer){ + function _helpermethods_xhtml(Doku_Renderer &$renderer){ global $lang; $plugins = plugin_list('helper'); @@ -237,7 +223,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { /** * Adds a TOC item */ - function _addToTOC($text, $level, &$renderer){ + function _addToTOC($text, $level, Doku_Renderer_xhtml &$renderer){ global $conf; if (($level >= $conf['toptoclevel']) && ($level <= $conf['maxtoclevel'])){ -- cgit v1.2.3