mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Apply suggestions
This commit is contained in:
parent
072464119a
commit
b439df892a
14 changed files with 69 additions and 66 deletions
|
@ -1184,13 +1184,13 @@ function update_1508()
|
|||
{
|
||||
$config = DBA::selectToArray('config');
|
||||
|
||||
$newConfig = DI::config()->transactional();
|
||||
$newConfig = DI::config()->beginTransaction();
|
||||
|
||||
foreach ($config as $entry) {
|
||||
$newConfig->set($entry['cat'], $entry['k'], $entry['v']);
|
||||
}
|
||||
|
||||
$newConfig->save();
|
||||
$newConfig->commit();
|
||||
|
||||
DBA::e("DELETE FROM `config`");
|
||||
DBA::e("TRUNCATE TABLE `config`");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue