From: Alan Date: Fri, 24 Feb 2023 06:14:24 +0000 (+0800) Subject: DataObjects/Core_template.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=f7b0492171d0db3701d9cc980724f17e2618af36;p=Pman.Core DataObjects/Core_template.php --- diff --git a/DataObjects/Core_template.php b/DataObjects/Core_template.php index 2525c931..65937d89 100644 --- a/DataObjects/Core_template.php +++ b/DataObjects/Core_template.php @@ -452,9 +452,9 @@ class Pman_Core_DataObjects_Core_template extends DB_DataObject $fc = file_get_contents( $tmpl->currentTemplate ); - $ar = preg_match('/\.\("^("+)"\)/g', $fc, $outd); + $ar = preg_match('/\.\("^("+)"\)/', $fc, $outd); print_R($outd); - $ar = preg_match('/\.\('. "'" . '(^"+)'. "'" . '\)/g', $fc, $outs); + $ar = preg_match('/\.\('. "'" . '(^"+)'. "'" . '\)/', $fc, $outs); print_R($outs);exit; $words[] = str_replace('\\'. $ct, $ct, trim($tok[1] , $ct));