Skip to content

Commit

Permalink
Merge branch '4.0-dev' into 21225-fix-menu-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d authored Aug 2, 2018
2 parents f8c971f + 124d5af commit 8988c5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions administrator/components/com_menus/View/Items/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function display($tpl = null)
// Get XML file from component folder for standard layouts
$file = JPATH_SITE . '/components/' . $item->componentname . '/tmpl/' . $vars['view']
. '/' . $vars['layout'] . '.xml';

if (!file_exists($file))
{
$file = JPATH_SITE . '/components/' . $item->componentname . '/views/'
Expand All @@ -224,7 +224,6 @@ public function display($tpl = null)
. $vars['view'] . '/tmpl/' . $vars['layout'] . '.xml';
}
}

}

if (is_file($file) && $xml = simplexml_load_file($file))
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Session/Storage/JoomlaStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(Input $input, \SessionHandlerInterface $handler = nu
'use_trans_sid' => 0,
];

if (!headers_sent())
if (!headers_sent() && !$this->isActive())
{
session_cache_limiter('none');
}
Expand Down Expand Up @@ -229,7 +229,7 @@ public function set(string $name, $value = null)
*/
protected function setCookieParams()
{
if (headers_sent())
if (headers_sent() || $this->isActive())
{
return;
}
Expand Down

0 comments on commit 8988c5d

Please sign in to comment.