Update of /cvsroot/phpslash/phpslash-ft/class
In directory sc8-pr-cvs1:/tmp/cvs-serv3188/phpslash-ft/class
Modified Files:
functions.inc
Log Message:
getHeader allows for extra_ary to be defined in the ini or config file.
Index: functions.inc
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v
retrieving revision 1.145
retrieving revision 1.146
diff -C2 -d -r1.145 -r1.146
*** functions.inc 6 May 2003 20:28:49 -0000 1.145
--- functions.inc 7 May 2003 19:27:07 -0000 1.146
***************
*** 567,570 ****
--- 567,575 ----
}
+ // Are there extra tags/variables to pass to template?
+ if(!is_array($extra_ary) && is_array($_PSL['extra_ary'])) {
+ $extra_ary = $_PSL['extra_ary'];
+ }
+
// parse extra array into template variable placeholder and value
if( is_array($extra_ary)) {
|