Skip to content

Commit

Permalink
[-] CORE : Fix bug #PSCSX-1258, js stack repeated for 1.4 template
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Mar 25, 2014
1 parent 950f3d8 commit 4827057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/controller/Controller.php
Expand Up @@ -403,7 +403,7 @@ protected function smartyOutputContent($content)

$html = trim($html);

if ($this->controller_type == 'front' && !empty($html))
if ($this->controller_type == 'front' && !empty($html) && $this->getLayout())
{
$dom_available = extension_loaded('dom') ? true : false;
if ($dom_available)
Expand Down
4 changes: 2 additions & 2 deletions classes/controller/FrontController.php
Expand Up @@ -480,7 +480,7 @@ public function displayHeader($display = true)

$this->context->smarty->assign(array(
'css_files' => $this->css_files,
'js_files' => array() // assign moved to smartyOutputContent since 1.6
'js_files' => $this->getLayout() ? array() : $this->js_files
));

$this->display_header = $display;
Expand Down Expand Up @@ -535,7 +535,7 @@ public function display()

$this->context->smarty->assign(array(
'css_files' => $this->css_files,
'js_files' => array(), // assign moved to smartyOutputContent since 1.6
'js_files' => $this->getLayout() ? array() : $this->js_files,
'errors' => $this->errors,
'display_header' => $this->display_header,
'display_footer' => $this->display_footer,
Expand Down

0 comments on commit 4827057

Please sign in to comment.