X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fcommands%2Fhtml%2Fclass_HtmlConfirmCommand.php;h=5be6195f7c27b31ed04e7ba9e102a8917dc35271;hp=9ad5288525602c97c9dc5bb7da555f1abbc9838f;hb=2b4f4b88ec5f9d385110e800494c680e164b5a36;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1 diff --git a/framework/main/classes/commands/html/class_HtmlConfirmCommand.php b/framework/main/classes/commands/html/class_HtmlConfirmCommand.php index 9ad52885..5be6195f 100644 --- a/framework/main/classes/commands/html/class_HtmlConfirmCommand.php +++ b/framework/main/classes/commands/html/class_HtmlConfirmCommand.php @@ -1,18 +1,18 @@ getInstance('app'); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('application'); // Prepare a template instance $templateInstance = $this->prepareTemplateInstance($applicationInstance); // Assign application data with template engine - $templateInstance->assignApplicationData($applicationInstance); + $templateInstance->assignApplicationData(); // Assign base URL $templateInstance->assignConfigVariable('base_url'); @@ -115,7 +115,7 @@ class HtmlConfirmCommand extends BaseCommand implements Commandable { // Get user instance try { - $userInstance = Registry::getRegistry()->getInstance('user'); + $userInstance = GenericRegistry::getRegistry()->getInstance('user'); } catch (NullPointerException $e) { // Not found user, e.g. when the user is somehow invalid $responseInstance->redirectToConfiguredUrl('html_cmd_user_is_null');