Fix in case the storage config is set as file.
This commit is contained in:
parent
6f4eee516b
commit
c2ac206379
|
@ -416,10 +416,12 @@ function update_1330()
|
||||||
// set the name of the storage instead of the classpath as config
|
// set the name of the storage instead of the classpath as config
|
||||||
if (!empty($currStorage)) {
|
if (!empty($currStorage)) {
|
||||||
/** @var Storage\IStorage $currStorage */
|
/** @var Storage\IStorage $currStorage */
|
||||||
if (!Config::set('storage', 'name', $currStorage::getName()) ||
|
if (!Config::set('storage', 'name', $currStorage::getName())) {
|
||||||
!Config::delete('storage', 'class')) {
|
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
// try to delete the class since it isn't needed. This won't work with config files
|
||||||
|
Config::delete('storage', 'class');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update attachments and photos
|
// Update attachments and photos
|
||||||
|
|
Loading…
Reference in New Issue
Block a user