diff options
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/info/syntax.php | 33 | ||||
-rw-r--r-- | lib/plugins/syntax.php | 5 |
2 files changed, 18 insertions, 20 deletions
diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php index 34acd98b7..ed555b65d 100644 --- a/lib/plugins/info/syntax.php +++ b/lib/plugins/info/syntax.php @@ -6,6 +6,7 @@ * @author Andreas Gohr <andi@splitbrain.org> */ + if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_PLUGIN.'syntax.php'); @@ -23,7 +24,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { return array( 'author' => 'Andreas Gohr', 'email' => 'andi@splitbrain.org', - 'date' => '2005-06-26', + 'date' => '2005-08-03', 'name' => 'Info Plugin', 'desc' => 'Displays information about various DokuWiki internals', 'url' => 'http://wiki.splitbrain.org/plugin:info', @@ -106,21 +107,21 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { $plugins = plugin_list('syntax'); foreach($plugins as $p){ - if(plugin_load('syntax',$p,$po)){ - $info = $po->getInfo(); - - $renderer->doc .= '<li>'; - $renderer->externallink($info['url'],$info['name']); - $renderer->doc .= ' '; - $renderer->doc .= '<i>'.$info['date'].'</i>'; - $renderer->doc .= ' '; - $renderer->doc .= $lang['by']; - $renderer->doc .= ' '; - $renderer->emaillink($info['email'],$info['author']); - $renderer->doc .= '<br />'; - $renderer->doc .= htmlspecialchars($info['desc']); - $renderer->doc .= '</li>'; - } + $po =& plugin_load('syntax',$p); + $info = $po->getInfo(); + + $renderer->doc .= '<li>'; + $renderer->externallink($info['url'],$info['name']); + $renderer->doc .= ' '; + $renderer->doc .= '<i>'.$info['date'].'</i>'; + $renderer->doc .= ' '; + $renderer->doc .= $lang['by']; + $renderer->doc .= ' '; + $renderer->emaillink($info['email'],$info['author']); + $renderer->doc .= '<br />'; + $renderer->doc .= htmlspecialchars($info['desc']); + $renderer->doc .= '</li>'; + unset($po); } $renderer->doc .= '</ul>'; diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index d42169a45..f5a2ee90e 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -61,9 +61,6 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { * for correct XHTML nesting. Should return one of the following: * * 'normal' - The plugin can be used inside paragraphs - - - * 'block' - Open paragraphs need to be closed before plugin output * 'stack' - Special case. Plugin wraps other paragraphs. * @@ -140,4 +137,4 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { } } -//Setup VIM: ex: et ts=4 enc=utf-8 :
\ No newline at end of file +//Setup VIM: ex: et ts=4 enc=utf-8 : |