diff options
| author | 2025-09-30 16:59:41 -0400 | |
|---|---|---|
| committer | 2025-09-30 22:59:41 +0200 | |
| commit | 72884813e13596d211471482ffdc6d723ed678c9 (patch) | |
| tree | 043856f23bdcae7f9f88294c47c499657c2d05ff /app/actualize_script.php | |
| 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/actualize_script.php')
| -rwxr-xr-x | app/actualize_script.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php index 2be2a117a..e64d0b707 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -96,7 +96,7 @@ foreach ($users as $user) { // NB: Extensions and hooks are reinitialised there $app->init(); - Minz_ExtensionManager::addHook('feed_before_actualize', static function (FreshRSS_Feed $feed) use ($mutexFile) { + Minz_ExtensionManager::addHook(Minz_HookType::FeedBeforeActualize, static function (FreshRSS_Feed $feed) use ($mutexFile) { touch($mutexFile); return $feed; }); |
