X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fmailer%2Fclass_ApplicationHelper.php;h=8d528a3cc4768c6d1be3a6c7ecd645d4c733f31e;hb=2d82598c7434b89e0a8fc134dee2b1bbcb5754d5;hp=5762ce3911f9c206e10aadeab27c433b0b9f1c0d;hpb=6a86fc5ed698e9d9057280b9eee8ca44e2ed8b0c;p=mailer.git diff --git a/application/mailer/class_ApplicationHelper.php b/application/mailer/class_ApplicationHelper.php index 5762ce3911..8d528a3cc4 100644 --- a/application/mailer/class_ApplicationHelper.php +++ b/application/mailer/class_ApplicationHelper.php @@ -43,17 +43,17 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication /** * The version number of this application */ - private $appVersion = ""; + private $appVersion = ''; /** * The human-readable name for this application */ - private $appName = ""; + private $appName = ''; /** * The short uni*-like name for this application */ - private $shortName = ""; + private $shortName = ''; /** * An instance of a controller @@ -160,7 +160,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication */ public function buildMasterTemplateName () { // Get short name and add suffix - $masterTemplateName = str_replace("-", "", $this->getAppShortName()) . "_main"; + $masterTemplateName = str_replace('-', '', $this->getAppShortName()) . '_main'; // Return it return $masterTemplateName; @@ -211,8 +211,8 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication $requestInstance->setRequestElement('page', $commandName); } // END - if - // Get a resolver - $resolverClass = sprintf("%sControllerResolver", $this->convertToClassName($responseType)); + // Get a controller resolver + $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well