X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FJoomla.php;h=746ef630ecee9b17217ca3eb084295a5a36d292e;hb=30a3000cc63f6d8858943fc61afa98ec123b60aa;hp=4fd07e84d0c053332909337efa0468e395da7a4f;hpb=d5f4469ac2c169416d7f19c8b448a2427689e297;p=civicrm-core.git diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 4fd07e84d0..746ef630ec 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -265,8 +265,12 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { if ($config->userFrameworkFrontend) { $script = 'index.php'; - if (JRequest::getVar("Itemid") && (strpos($path, 'civicrm/payment/ipn') === FALSE)) { - $Itemid = "{$separator}Itemid=" . JRequest::getVar("Itemid"); + + // Get Itemid using JInput::get() + $input = Joomla\CMS\Factory::getApplication()->input; + $itemIdNum = $input->get("Itemid"); + if ($itemIdNum && (strpos($path, 'civicrm/payment/ipn') === FALSE)) { + $Itemid = "{$separator}Itemid=" . $itemIdNum; } }