mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-20 09:38:21 +02:00
fix logic compability
This commit is contained in:
parent
14c4ab8fbc
commit
8e9aeec517
1 changed files with 7 additions and 2 deletions
|
@ -131,8 +131,13 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
|
||||||
public function display($template = null, $cache_id = null, $compile_id = null, $parent = null)
|
public function display($template = null, $cache_id = null, $compile_id = null, $parent = null)
|
||||||
{
|
{
|
||||||
// display template
|
// display template
|
||||||
$template = str_replace("section/user-",'user-ui/', $template);
|
if(strpos($template, "user-ui") === false){
|
||||||
$template = str_replace("user-",'', $template);
|
if(strpos($template, "section/user-") === false){
|
||||||
|
$template = str_replace("user-",'', $template);
|
||||||
|
}else{
|
||||||
|
$template = str_replace("section/user-",'user-ui/', $template);
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->_execute($template, $cache_id, $compile_id, $parent, 1);
|
$this->_execute($template, $cache_id, $compile_id, $parent, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue