X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbupdate.php;h=799ca262c837b4229b80b3b464bd3bf5f6ac1624;hb=86d3adaa5084639a1221fc74ac44d5508add25f4;hp=898f459630a1326b198472616fc35719cdfd8f5f;hpb=22f32d9721809d2e655c7ab78d6a043b93de0af1;p=friendica.git diff --git a/include/dbupdate.php b/include/dbupdate.php index 898f459630..799ca262c8 100644 --- a/include/dbupdate.php +++ b/include/dbupdate.php @@ -1,30 +1,13 @@ start_process(); - - load_config('config'); - load_config('system'); + // We are deleting the latest dbupdate entry. + // This is done to avoid endless loops because the update was interupted. + Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION); update_db($a); } - -if (array_search(__file__,get_included_files())===0){ - dbupdate_run($_SERVER["argv"],$_SERVER["argc"]); - killme(); -}