openrat-cms

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

commit d06b2b213a1412ee0359452bdd6e89a10d22a3d8
parent 5c2dddf1e39241867b0b9904a23f55b3c9ab340e
Author: Jan Dankert <devnull@localhost>
Date:   Wed,  1 Nov 2017 23:24:05 +0100

Konstante "DEVELOPMENT" setzen.

Diffstat:
dispatcher.php | 1+
util/TemplateEngine.class.php | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dispatcher.php b/dispatcher.php @@ -116,6 +116,7 @@ define('FILE_SEP',$conf['interface']['file_separator']); define('TEMPLATE_DIR',OR_THEMES_DIR.$conf['interface']['theme'].'/templates'); define('CSS_DIR' ,OR_THEMES_DIR.$conf['interface']['theme'].'/css' ); define('IMAGE_DIR' ,OR_THEMES_DIR.$conf['interface']['theme'].'/images' ); +define('DEVELOPMENT' ,!$conf['production']); require_once( "functions/config.inc.php" ); require_once( "functions/language.inc.".PHP_EXT ); diff --git a/util/TemplateEngine.class.php b/util/TemplateEngine.class.php @@ -216,7 +216,7 @@ class TemplateEngine // Baustein nicht vorhanden, Abbbruch. die( get_class($this).': Compile failed, file not found: '.$inFileName ); - if ( !$conf['production']) + if ( DEVELOPMENT ) fwrite( $outFileHandler,"<!-- Compiling $infile @ ".date('r')." -->" ); $values = array();