mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
Hardening ConfigUpgrade
This commit is contained in:
parent
1c2a77c47f
commit
e0b1f4f251
5 changed files with 126 additions and 57 deletions
15
update.php
15
update.php
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -347,17 +346,3 @@ function update_1298()
|
|||
}
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://github.com/friendica/friendica/pull/6920
|
||||
* @return int Success
|
||||
*/
|
||||
function update_1307()
|
||||
{
|
||||
$app = BaseObject::getApp();
|
||||
if (Update::saveConfigToFile($app->getBasePath(), $app->getMode())) {
|
||||
return Update::SUCCESS;
|
||||
} else {
|
||||
return Update::FAILED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue