diff options
| author | 2025-09-30 16:59:41 -0400 | |
|---|---|---|
| committer | 2025-09-30 22:59:41 +0200 | |
| commit | 72884813e13596d211471482ffdc6d723ed678c9 (patch) | |
| tree | 043856f23bdcae7f9f88294c47c499657c2d05ff /app/views/auth | |
| parent | bf6e634e042b726edd97335ac36b2305f8101b3f (diff) | |
Add hook enums (#8036)
- add an enum to handle hook types (enum are available since PHP 8.1)
- change hook calls from string value to enum value
Diffstat (limited to 'app/views/auth')
| -rw-r--r-- | app/views/auth/formLogin.phtml | 2 | ||||
| -rw-r--r-- | app/views/auth/register.phtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml index 23fceeb88..24427193d 100644 --- a/app/views/auth/formLogin.phtml +++ b/app/views/auth/formLogin.phtml @@ -38,7 +38,7 @@ </label> </div> - <?= Minz_ExtensionManager::callHookString('before_login_btn') ?> + <?= Minz_ExtensionManager::callHookString(Minz_HookType::BeforeLoginBtn) ?> <div class="form-group form-group-actions"> <button id="loginButton" type="submit" class="btn btn-important" disabled="disabled"> diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml index 5787b36fc..9e1728dc7 100644 --- a/app/views/auth/register.phtml +++ b/app/views/auth/register.phtml @@ -66,7 +66,7 @@ </div> <?php } ?> - <?= Minz_ExtensionManager::callHookString('before_login_btn') ?> + <?= Minz_ExtensionManager::callHookString(Minz_HookType::BeforeLoginBtn) ?> <div class="form-group form-group-actions"> <?php |
