Restore the admin application check for toolbar. #703

Merged
merged 1 commit into from Jan 3, 2012
@@ -357,7 +357,7 @@ public static function renderComponent($option, $params = array())
$contents = self::executeComponent($path);
// 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
$task = JRequest::getString('task');