$appInstance = $registryInstance->getInstance('application');
// Default action is the one from configuration
- $this->actionName = sprintf("%s_login_%s",
- str_replace("-", "_", $appInstance->getAppShortName()),
- $this->getConfigInstance()->readConfig('login_default_action')
- );
+ $this->actionName = $this->convertDashesToUnderscores($appInstance->getAppShortName()) . '_login_' . $this->getConfigInstance()->readConfig('login_default_action');
// Get "action" from request
$actReq = $requestInstance->getRequestElement('action');
// Do we have a "action" parameter set?
if ((is_string($actReq)) && (!empty($actReq))) {
// Then use it with prefix
- $this->actionName = sprintf("%s_login_%s",
- str_replace("-", "_", $appInstance->getAppShortName()),
- $actReq
- );
+ $this->actionName = $this->convertDashesToUnderscores($appInstance->getAppShortName()) . '_login_' . $actReq;
} // END - if
// Get application instance