Skip to content

Commit

Permalink
CRM-14226 getMenu() should not be called statically
Browse files Browse the repository at this point in the history
Several civicrm event registrations failed on us with the following
error:
Non-static method JApplicationCms::getMenu() should not be called
statically
This is a small fix for this issue.
  • Loading branch information
magnolia61 committed Feb 15, 2014
1 parent 02c97e2 commit e58ca85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/civicrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function civicrm_invoke() {
// overrride the GET values if conflict
if (!empty($_REQUEST['Itemid'])) {
$component = JComponentHelper::getComponent('com_civicrm');
$menu = JSite::getMenu();
$menu = JFactory::getApplication()->getMenu();
$params = $menu->getParams($_REQUEST['Itemid']);
$args = array('task', 'id', 'gid', 'pageId', 'action', 'csid', 'component');
$view = CRM_Utils_Array::value('view', $_REQUEST);
Expand Down

0 comments on commit e58ca85

Please sign in to comment.