diff options
author | Andrew Dolgov <[email protected]> | 2012-12-24 14:27:15 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-24 14:27:15 +0400 |
commit | 41b82aa4b98bc0e2004e7d28c2f5933fbe3ad7a3 (patch) | |
tree | 6a620d5ff234821d9e1dcb56110f760ed0e73ed9 /update.php | |
parent | 356a991a7bfac731dc63d3ce29ccd050143fbebf (diff) |
add HOOK_UPDATE_TASK
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/update.php b/update.php index d039d062e..f1396f6e6 100755 --- a/update.php +++ b/update.php @@ -51,7 +51,6 @@ print " -feedbrowser - update feedbrowser\n"; print " -daemon - start single-process update daemon\n"; print " -cleanup-tags - perform tags table maintenance\n"; - print " -get-feeds - receive popular feeds from linked instances\n"; print " -import USER FILE - import articles from XML\n"; print " -quiet - don't show messages\n"; print " -indexes - recreate missing schema indexes\n"; @@ -98,7 +97,8 @@ $rc = cleanup_tags($link, 14, 50000); _debug("Cleaned $rc cached tags."); - get_linked_feeds($link); + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op); } if (in_array("-feedbrowser", $op)) { @@ -135,7 +135,8 @@ _debug("Cleaned $rc cached tags."); - get_linked_feeds($link); + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op); } } @@ -145,10 +146,6 @@ _debug("$rc tags deleted.\n"); } - if (in_array("-get-feeds", $op)) { - get_linked_feeds($link); - } - if (in_array("-import",$op)) { $username = $argv[count($argv) - 2]; $filename = $argv[count($argv) - 1]; |