mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Fixed configuration save location to point to existing config folder [#2176]
This commit is contained in:
@@ -174,11 +174,11 @@ class AdminController extends AdminBaseController
|
||||
*/
|
||||
protected function saveDefault()
|
||||
{
|
||||
// Handle standard data types.
|
||||
$type = $this->getDataType();
|
||||
$obj = $this->admin->getConfigurationData($type, $this->data);
|
||||
|
||||
try {
|
||||
// Handle standard data types.
|
||||
$type = $this->getDataType();
|
||||
|
||||
$obj = $this->admin->getConfigurationData($type, $this->data);
|
||||
$obj->validate();
|
||||
} catch (\Exception $e) {
|
||||
/** @var Debugger $debugger */
|
||||
|
||||
Reference in New Issue
Block a user