]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
wrap rssfuncs into rssutils class
[tt-rss.git] / update.php
index 2245ea02c90ddb27cb948a8017b40a714728e025..fe2b3c572373189638533af61592b53b16d2e66f 100755 (executable)
@@ -9,7 +9,6 @@
 
        require_once "autoload.php";
        require_once "functions.php";
-       require_once "rssfuncs.php";
        require_once "config.php";
        require_once "sanity_check.php";
        require_once "db.php";
        }
 
        if (isset($options["feeds"])) {
-               update_daemon_common();
-               housekeeping_common(true);
+               RSSUtils::update_daemon_common();
+               RSSUtils::housekeeping_common(true);
 
                PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);
        }
 
        if (isset($options["feedbrowser"])) {
-               $count = update_feedbrowser_cache();
+               $count = RSSUtils::update_feedbrowser_cache();
                print "Finished, $count feeds processed.\n";
        }
 
                        _debug("warning: unable to create stampfile\n");
                }
 
-               update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT);
+               RSSUtils::update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT);
 
                if (!isset($options["pidlock"]) || $options["task"] == 0)
-                       housekeeping_common(true);
+                       RSSUtils::housekeeping_common(true);
 
                PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);
        }
 
                $_REQUEST['xdebug'] = 1;
 
-               $rc = update_rss_feed($feed) != false ? 0 : 1;
+               $rc = RSSUtils::update_rss_feed($feed) != false ? 0 : 1;
 
                exit($rc);
        }