1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-05 01:29:16 +00:00

add HOOK_UPDATE_TASK

This commit is contained in:
Andrew Dolgov
2012-12-24 14:27:15 +04:00
parent 356a991a7b
commit 41b82aa4b9
5 changed files with 114 additions and 105 deletions

View File

@@ -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];