diff --git a/universalbuttons.php b/universalbuttons.php index ef150a3..6d371c4 100755 --- a/universalbuttons.php +++ b/universalbuttons.php @@ -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 = ''; @@ -149,4 +149,4 @@ public function onDisplay($name, &$params) } -?> \ No newline at end of file +?>