Skip to content

Commit

Permalink
joomla4: fix crash with using removed function isSite
Browse files Browse the repository at this point in the history
Joomla4 no longer uses the JApplciation::getApplciation()->isSite function. Instead one should use isClient(“site”) or isClient(“administrator”)
joomla/joomla-cms#8971
  • Loading branch information
compojoom committed Jun 11, 2020
1 parent 824ac19 commit f61c607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/libraries/compojoom/html/ctemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static function getHead($menu, $active = 'dashboard', $title = '', $sloga
</div>';
$app = JFactory::getApplication();

if(!$app->isSite())
if(!$app->isClient("site"))
{
$app->JComponentTitle = $title;
JFactory::getDocument()->setTitle(JFactory::getConfig()->get('sitename') . ' - ' . JText::_('JADMINISTRATION') . ' - ' . JText::_($title));
Expand Down

0 comments on commit f61c607

Please sign in to comment.