]> git.mxchange.org Git - friendica.git/blobdiff - include/threadupdate.php
Revert unneeded changes in third-party libraries
[friendica.git] / include / threadupdate.php
index dc528c6b87105d1a34871508399df9dca14d603e..3a4028603eb7236ce7da362c0f3a26a70fd27bc5 100644 (file)
@@ -1,25 +1,7 @@
 <?php
-
-use \Friendica\Core\Config;
-
-require_once("boot.php");
 require_once("include/threads.php");
 
-global $a, $db;
-
-if(is_null($a))
-       $a = new App;
-
-if(is_null($db)) {
-       @include(".htconfig.php");
-       require_once("include/dba.php");
-       $db = new dba($db_host, $db_user, $db_pass, $db_data);
-       unset($db_host, $db_user, $db_pass, $db_data);
+function threadupdate_run(&$argv, &$argc){
+       update_threads();
+       update_threads_mention();
 }
-
-Config::load();
-
-update_threads();
-update_threads_mention();
-killme();
-?>