mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Automatically set the new configuration for the global directory when updating.
This commit is contained in:
parent
ddaacc1e53
commit
b75a3c8943
1 changed files with 11 additions and 0 deletions
11
update.php
11
update.php
|
@ -1648,3 +1648,14 @@ function update_1180() {
|
|||
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
function update_1188() {
|
||||
|
||||
if (strlen(get_config('system','directory_submit_url')) AND
|
||||
!strlen(get_config('system','directory'))) {
|
||||
set_config('system','directory', dirname(get_config('system','directory_submit_url')));
|
||||
del_config('system','directory_submit_url');
|
||||
}
|
||||
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue