X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbupdate.php;h=725eca737045865d85ff2ec2ecf55ecbad250b68;hb=f94a10bf00de699a5f3d22ea74665053a5661175;hp=898f459630a1326b198472616fc35719cdfd8f5f;hpb=22f32d9721809d2e655c7ab78d6a043b93de0af1;p=friendica.git diff --git a/include/dbupdate.php b/include/dbupdate.php index 898f459630..725eca7370 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(); -}