mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Merge branch 'develop' into 1706-lock
This commit is contained in:
commit
f4652d6e50
31 changed files with 19040 additions and 7890 deletions
|
@ -3,8 +3,8 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
|
||||
require_once("boot.php");
|
||||
require_once("include/text.php");
|
||||
require_once "boot.php";
|
||||
require_once "include/text.php";
|
||||
|
||||
define('NEW_UPDATE_ROUTINE_VERSION', 1170);
|
||||
|
||||
|
@ -1768,7 +1768,7 @@ function dbstructure_run(&$argv, &$argc) {
|
|||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
}
|
||||
|
||||
if ($argc==2) {
|
||||
if ($argc == 2) {
|
||||
switch ($argv[1]) {
|
||||
case "dryrun":
|
||||
update_structure(true, false);
|
||||
|
@ -1778,7 +1778,7 @@ function dbstructure_run(&$argv, &$argc) {
|
|||
|
||||
$build = get_config('system','build');
|
||||
if (!x($build)) {
|
||||
set_config('system','build',DB_UPDATE_VERSION);
|
||||
set_config('system', 'build', DB_UPDATE_VERSION);
|
||||
$build = DB_UPDATE_VERSION;
|
||||
}
|
||||
|
||||
|
@ -1788,7 +1788,9 @@ function dbstructure_run(&$argv, &$argc) {
|
|||
// run any left update_nnnn functions in update.php
|
||||
for ($x = $stored; $x < $current; $x ++) {
|
||||
$r = run_update_function($x);
|
||||
if (!$r) break;
|
||||
if (!$r) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
set_config('system','build',DB_UPDATE_VERSION);
|
||||
|
@ -1815,7 +1817,7 @@ function dbstructure_run(&$argv, &$argc) {
|
|||
|
||||
}
|
||||
|
||||
if (array_search(__file__,get_included_files())===0) {
|
||||
if (array_search(__FILE__,get_included_files())===0) {
|
||||
dbstructure_run($_SERVER["argv"],$_SERVER["argc"]);
|
||||
killme();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue