Commit 1199a77a authored by tbrehm's avatar tbrehm
Browse files

Implemented: FS#2289 - Load form and list templates from theme folder if they exist

parent 562ed321
......@@ -878,8 +878,15 @@ if (!defined('vlibTemplateClassLoaded')) {
*/
private function _fileSearch($file)
{
$filename = basename($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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment