X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FLinksMagic.php;h=7301c0f57fe52791e8746b72b6558eff33ad4aa0;hb=316b8ada1e2bad8bd2243baa7d978c6d3e3f07c4;hp=6c1f83c602e168df6551bd7149a7b4ef7eba9b09;hpb=b2c16bf312cd037e252e568974a5523407e42099;p=diogenes.git
diff --git a/plugins/LinksMagic.php b/plugins/LinksMagic.php
index 6c1f83c..7301c0f 100644
--- a/plugins/LinksMagic.php
+++ b/plugins/LinksMagic.php
@@ -31,17 +31,10 @@ class LinksMagic extends Diogenes_Plugin_Filter
/** Plugin description */
var $description = "This plugin allows you to mark external and secure (HTTPS) links in your pages.";
-
-
- /** Constructor.
- */
- function LinksMagic()
- {
- $this->declareParam('main', 1);
- $this->declareParam('sidebar', 1);
- }
-
+ /** Plugin parameters */
+ var $params = array('main' => 1, 'sidebar' => 1);
+
/** Apply filtering to the input and return an output.
*
* @param $input
@@ -50,12 +43,12 @@ class LinksMagic extends Diogenes_Plugin_Filter
{
global $page;
- if ($this->getParamValue('sidebar'))
+ if ($this->params['sidebar'])
{
array_unshift($page->head, '');
}
- if ($this->getParamValue('main'))
+ if ($this->params['main'])
{
array_unshift($page->head, '');
}