[phpMP-CVS] CVS: phpMP/includes template.php,1.11,1.12
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2002-04-11 04:15:42
|
Update of /cvsroot/phpmp/phpMP/includes In directory usw-pr-cvs1:/tmp/cvs-serv17457/includes Modified Files: template.php Log Message: Updated DBA for mySQL. Updated templating procedure. Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** template.php 11 Apr 2002 03:26:02 -0000 1.11 --- template.php 11 Apr 2002 04:15:39 -0000 1.12 *************** *** 153,160 **** // Additional Note: Blocking() uses the variables set in $TPLVars, which must be present. function Blocking($function, $tpl_array = array()) { ! global $TPLVars; ! //if($this->block_vars_read != 1) { $this->ReadTplConfig('blocking'); ! //} $tpl_array = $this->AssignDefaults($tpl_array); --- 153,162 ---- // Additional Note: Blocking() uses the variables set in $TPLVars, which must be present. function Blocking($function, $tpl_array = array()) { ! global $TPLVars, $rvalue; ! if($this->block_vars_read != 1) { $this->ReadTplConfig('blocking'); ! } ! ! $TPLnew = $TPLVars; $tpl_array = $this->AssignDefaults($tpl_array); *************** *** 162,169 **** while( list($key,$value) = each($tpl_array) ) { $key = '{' . $key . '}'; ! $TPLVars["$function"] = ereg_replace("$key", "$value", $TPLVars["$function"]); } ! echo "{$TPLVars["$function"]}"; } --- 164,171 ---- while( list($key,$value) = each($tpl_array) ) { $key = '{' . $key . '}'; ! $TPLnew[$function] = ereg_replace($key, $value, $TPLnew[$function]); } ! echo $TPLnew[$function]; } |