use core tpl_includeFile() if it exists
This commit is contained in:
parent
0009a803ac
commit
d386b375f2
4 changed files with 14 additions and 7 deletions
|
|
@ -187,3 +187,10 @@ function _tpl_include($fn) {
|
|||
else if (file_exists($tplFile))
|
||||
include($tplFile);
|
||||
}
|
||||
|
||||
/* use core function if available, otherwise the custom one */
|
||||
if (!function_exists('tpl_includeFile')) {
|
||||
function tpl_includeFile($fn){
|
||||
_tpl_include($fn);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue