commit 5eb41df7cab498ca1373696c0f9f893e55cc291e
parent 92d3f2d91a12c6e85d2b32990ce24643cc08cf53
Author: dankert <devnull@localhost>
Date: Fri, 26 Jun 2009 01:11:47 +0200
Warnmeldung wegen ausgeschalteter Codeausführung nicht bei dynamischen Elementen zeigen.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/actionClasses/ElementAction.class.php b/actionClasses/ElementAction.class.php
@@ -402,9 +402,6 @@ class ElementAction extends Action
// Eigenschaften PHP-Code
case 'code':
- if ( $conf['security']['disable_dynamic_code'] )
- $this->addNotice('element',$this->element->name,'CODE_DISABLED',OR_NOTICE_WARN);
-
switch( $this->element->type )
{
@@ -458,6 +455,9 @@ class ElementAction extends Action
break;
case 'code':
+ if ( $conf['security']['disable_dynamic_code'] )
+ $this->addNotice('element',$this->element->name,'CODE_DISABLED',OR_NOTICE_WARN);
+
$this->setTemplateVar('code',$this->element->code);
break;
}