From 5fc64c900491b221104a18c7fd357bebb9e59b0b Mon Sep 17 00:00:00 2001 From: rurban Date: Sat, 3 Jul 2004 07:35:45 +0000 Subject: [PATCH] give plugins a (not unique) ID tag of the plugin name git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@3845 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index 5cc8eccf9..1d4a0274b 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -1,5 +1,5 @@ * * This file is part of PhpWiki. @@ -465,6 +465,8 @@ class Cached_PluginInvocation extends Cached_DynamicContent { $xml = $loader->expandPI($this->_pi, $GLOBALS['request'], $markup, $basepage); $div = HTML::div(array('class' => 'plugin')); + if (is_array($plugin_cmdline = $loader->parsePI($this->_pi))) + $div->setAttr('id', $plugin_cmdline[1]->getName()); if (isset($this->_tightenable)) { if ($this->_tightenable == 3) -- 2.45.0