Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tazzios committed Sep 4, 2022
2 parents 4ba81b7 + 7c92d0d commit a836483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions universalbuttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function onDisplay($name, &$params)
$app = Factory::getApplication();
// ...
$root = '';
if ($app->isAdmin()) {
if ($app->isClient('administrator')) {
$root = '../'; // Joomla expects a relative path, leave site folder "administrator"
} else {
$root = '';
Expand Down Expand Up @@ -149,4 +149,4 @@ public function onDisplay($name, &$params)


}
?>
?>

0 comments on commit a836483

Please sign in to comment.