tbrehm
2012-06-18 1199a77a7a0feb0c359ac799686b8cdc0507c9d7
Implemented: FS#2289 - Load form and list templates from theme folder if they exist
1 files modified
7 ■■■■■ changed files
interface/lib/classes/tpl.inc.php 7 ●●●●● patch | view | raw | blame | history
interface/lib/classes/tpl.inc.php
@@ -878,9 +878,16 @@
         */
        private function _fileSearch($file) 
        {
            $filename = basename($file);
            $filepath = dirname($file);
            if(isset($_SESSION['s']['module']['name']) && isset($_SESSION['s']['theme'])) {
                if(is_file(ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/'.$_SESSION['s']['module']['name'].'/templates/'.$filename)) {
                    return ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/'.$_SESSION['s']['module']['name'].'/templates/'.$filename;
                }
            }
            //* check fullpath first..
            $fullpath = $filepath.'/'.$filename;
            if (is_file($fullpath)) return $fullpath;