mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
small fixes to backup config
This commit is contained in:
parent
511eb60e55
commit
31f4f5df60
@ -364,7 +364,7 @@ class Config extends Singleton
|
||||
public function restoreBackup($filename)
|
||||
{
|
||||
|
||||
if ($this->statusIsValid) {
|
||||
if ($this->isValid()) {
|
||||
// if current config is valid,
|
||||
$simplexml = $this->simplexml;
|
||||
try {
|
||||
@ -377,6 +377,7 @@ class Config extends Singleton
|
||||
$this->simplexml = $simplexml;
|
||||
$this->statusIsValid = true;
|
||||
$this->save(null, true);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// we don't have a valid config loaded, just copy and load the requested one
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user