Check that provided class implements IStorage in StorageManager::setBackend
- Add notice in admin if setting value change failed - Add notice in console if setting value change failed
This commit is contained in:
@@ -106,7 +106,11 @@ HELP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
StorageManager::setBackend($class);
|
||||
if (!StorageManager::setBackend($class)) {
|
||||
$this->out($class . ' is not a valid backend storage class.');
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user