Skip to content

Commit 8988c5d

Browse files
authored
Merge branch '4.0-dev' into 21225-fix-menu-selection
2 parents f8c971f + 124d5af commit 8988c5d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

administrator/components/com_menus/View/Items/HtmlView.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function display($tpl = null)
212212
// Get XML file from component folder for standard layouts
213213
$file = JPATH_SITE . '/components/' . $item->componentname . '/tmpl/' . $vars['view']
214214
. '/' . $vars['layout'] . '.xml';
215-
215+
216216
if (!file_exists($file))
217217
{
218218
$file = JPATH_SITE . '/components/' . $item->componentname . '/views/'
@@ -224,7 +224,6 @@ public function display($tpl = null)
224224
. $vars['view'] . '/tmpl/' . $vars['layout'] . '.xml';
225225
}
226226
}
227-
228227
}
229228

230229
if (is_file($file) && $xml = simplexml_load_file($file))

libraries/src/Session/Storage/JoomlaStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(Input $input, \SessionHandlerInterface $handler = nu
6363
'use_trans_sid' => 0,
6464
];
6565

66-
if (!headers_sent())
66+
if (!headers_sent() && !$this->isActive())
6767
{
6868
session_cache_limiter('none');
6969
}
@@ -229,7 +229,7 @@ public function set(string $name, $value = null)
229229
*/
230230
protected function setCookieParams()
231231
{
232-
if (headers_sent())
232+
if (headers_sent() || $this->isActive())
233233
{
234234
return;
235235
}

0 commit comments

Comments
 (0)