openrat-cms

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

commit 5244337d370af305a966a0110a794a4ed70f1d3c
parent bfc1797ddb7388f73756ae680bb4dfd83df652db
Author: dankert <devnull@localhost>
Date:   Wed, 13 May 2009 23:49:27 +0200

Anpassen der Ermittlung des temporaeren Dateinamens: Zentrale Funktion aus Klasse \"Object\" verwenden.

Diffstat:
serviceClasses/Code.class.php | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/serviceClasses/Code.class.php b/serviceClasses/Code.class.php @@ -39,7 +39,9 @@ class Code extends Dynamic if ( substr($this->code,0,5) != '<?php' ) $this->code = "<?php\n".$this->code."\n?>"; - $tmp = tempnam(0,'openratDynamic'); + $tmp = Object::getTempDir().'/openratDynamic'; + $tmp .= '.code.php.tmp'; + $f = fopen( $tmp,'a' ); fwrite( $f,$this->code ); fclose( $f );