if ($options) {
$$stateName->setOptions($options);
}
- if (property_exists($$stateName, 'urlPath') && isset($_GET[CRM_Core_Config::singleton()->userFrameworkURLVar])) {
- $$stateName->urlPath = explode('/', $_GET[CRM_Core_Config::singleton()->userFrameworkURLVar]);
+ if (property_exists($$stateName, 'urlPath')) {
+ $$stateName->urlPath = explode('/', (string) CRM_Utils_System::getUrlPath());
}
$this->addPage($$stateName);
$this->addAction($stateName, new HTML_QuickForm_Action_Direct());