GX-Bug #53253 » TemplateFilesFix.patch
src/system/core/ContentView.inc.php (revision Shelved version) | ||
---|---|---|
433 | 433 |
|
434 | 434 |
foreach($gxModulesFiles as $file) |
435 | 435 |
{ |
436 |
if($t_full_template_path !== $file && stripos($file, $templatePath) !== false) |
|
436 |
if($t_full_template_path !== $file && stripos($file, $templatePath) !== false || stripos($file,$t_template_file) !== false)
|
|
437 | 437 |
{ |
438 | 438 |
$extenderTemplateFiles[] = $file; |
439 | 439 |
} |
... | ... | |
449 | 449 |
|
450 | 450 |
if(count($extenderTemplateFiles)) |
451 | 451 |
{ |
452 |
array_unshift($extenderTemplateFiles, $t_full_template_path); |
|
452 |
if(file_exists($t_full_template_path)) |
|
453 |
{ |
|
454 |
array_unshift($extenderTemplateFiles, $t_full_template_path); |
|
455 |
} |
|
453 | 456 |
$t_html_output = $this->v_coo_smarty->fetch('extends:' . implode('|', $extenderTemplateFiles), |
454 | 457 |
$t_cache_id); |
455 | 458 |
} |