From 4f32716ed3cd44b3827d2a778211d2516344f77b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 3 Aug 2005 20:02:26 +0200 Subject: plugin tweaks, info plugin fixes darcs-hash:20050803180226-7ad00-7bce1982ed6589511ce38e2e4e5e4cdf8640a0ae.gz --- lib/plugins/info/syntax.php | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'lib/plugins/info') 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 */ + 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 .= '
  • '; - $renderer->externallink($info['url'],$info['name']); - $renderer->doc .= ' '; - $renderer->doc .= ''.$info['date'].''; - $renderer->doc .= ' '; - $renderer->doc .= $lang['by']; - $renderer->doc .= ' '; - $renderer->emaillink($info['email'],$info['author']); - $renderer->doc .= '
    '; - $renderer->doc .= htmlspecialchars($info['desc']); - $renderer->doc .= '
  • '; - } + $po =& plugin_load('syntax',$p); + $info = $po->getInfo(); + + $renderer->doc .= '
  • '; + $renderer->externallink($info['url'],$info['name']); + $renderer->doc .= ' '; + $renderer->doc .= ''.$info['date'].''; + $renderer->doc .= ' '; + $renderer->doc .= $lang['by']; + $renderer->doc .= ' '; + $renderer->emaillink($info['email'],$info['author']); + $renderer->doc .= '
    '; + $renderer->doc .= htmlspecialchars($info['desc']); + $renderer->doc .= '
  • '; + unset($po); } $renderer->doc .= ''; -- cgit v1.2.3