openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 03fce98723a51fe0d736a8f97ed5dc19ec7d80d9
parent f8a73a6de99679e20f820767dc499c6a619cb4d8
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 30 Oct 2012 19:58:12 +0100

Falls der Elementtyp 'code' deaktiviert ist, dann eine Warnung anzeigen.

Diffstat:
action/ElementAction.class.php | 1+
themes/default/templates/element/prop.tpl.src.xml | 8++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/action/ElementAction.class.php b/action/ElementAction.class.php @@ -156,6 +156,7 @@ class ElementAction extends Action function propView() { global $conf; + $this->setTemplateVar('type',$this->element->type ); // Abhaengig vom aktuellen Element-Typ die Eigenschaften anzeigen $properties = $this->element->getRelatedProperties(); diff --git a/themes/default/templates/element/prop.tpl.src.xml b/themes/default/templates/element/prop.tpl.src.xml @@ -1,6 +1,14 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> <header></header> + + <if true="config:security/disable_dynamic_code"> + <if value="var:type" equals="code" false="true"> + <part class="message warn"> + <text key="NOTICE_CODE_DISABLED" /> + </part> + </if> + </if> <form> <group> <if present="subtype">