Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Merge pull request #703 from elinw/toolbar
Browse files Browse the repository at this point in the history
Restore the admin application check for toolbar.
  • Loading branch information
pasamio committed Jan 3, 2012
2 parents 59c18dc + a962ad7 commit 694c346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/application/component/helper.php
Expand Up @@ -357,7 +357,7 @@ public static function renderComponent($option, $params = array())
$contents = self::executeComponent($path); $contents = self::executeComponent($path);


// Build the component toolbar // Build the component toolbar
if ($path = JApplicationHelper::getPath('toolbar')) if ($path = JApplicationHelper::getPath('toolbar') && $app->isAdmin())
{ {
// Get the task again, in case it has changed // Get the task again, in case it has changed
$task = JRequest::getString('task'); $task = JRequest::getString('task');
Expand Down

0 comments on commit 694c346

Please sign in to comment.