Skip to content

Commit

Permalink
Fixing a fatal error in the helper if called in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Sep 16, 2014
1 parent 9061f27 commit fbd0ba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion com_sermonspeaker/site/helpers/sermonspeaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ class SermonspeakerHelperSermonspeaker
*/
private static function getParams()
{
$option = 'com_sermonspeaker';

/* @var $app JApplicationSite */
$app = JFactory::getApplication();
self::$params = $app->getParams('com_sermonspeaker');
self::$params = (method_exists($app, 'getParams')) ? $app->getParams($option) : JComponentHelper::getParams($option);;
}

/**
Expand Down

0 comments on commit fbd0ba3

Please sign in to comment.