diff options
| author | 2015-01-15 12:02:42 +0100 | |
|---|---|---|
| committer | 2015-01-15 12:02:42 +0100 | |
| commit | 13cf8b5f9f22a50bba5d1223174407abb1c1d94c (patch) | |
| tree | fc09fb03bfb5c26dd477b8043ffebc64521e5946 /app/Controllers/updateController.php | |
| parent | 556f4ad4bfa722e3350f20ab91a08f0af1d11f9e (diff) | |
Improve hook calls and add post_update hook
- To the hook is associated a method signature (OneToOne or NoneToNone for now) so
it is easier to call hooks correctly
- post_update hook is called during the post update moment.
Diffstat (limited to 'app/Controllers/updateController.php')
| -rw-r--r-- | app/Controllers/updateController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php index 1ea5816da..61b62773b 100644 --- a/app/Controllers/updateController.php +++ b/app/Controllers/updateController.php @@ -112,6 +112,8 @@ class FreshRSS_update_Controller extends Minz_ActionController { if (Minz_Request::param('post_conf', false)) { $res = do_post_update(); + Minz_ExtensionManager::callHook('post_update'); + if ($res === true) { @unlink(UPDATE_FILENAME); @file_put_contents(join_path(DATA_PATH, 'last_update.txt'), ''); |
