mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
Theme update - custom files overwritten #2135
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
* Added a `min_height:` option for list field
|
||||
1. [](#bugfix)
|
||||
* Fixed z-index issue for tooltips in sidebar
|
||||
* Fixed custom files being overridden during theme update [#2135](https://github.com/getgrav/grav-plugin-admin/issues/2135)
|
||||
|
||||
# v1.10.13
|
||||
## 04/23/2021
|
||||
|
||||
@@ -993,7 +993,7 @@ class AdminController extends AdminBaseController
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = Gpm::install(array_keys($dependencies), ['theme' => $type === 'theme']);
|
||||
$result = Gpm::install(array_keys($dependencies), ['theme' => $type === 'themes']);
|
||||
|
||||
if ($result) {
|
||||
$this->admin->json_response = ['status' => 'success', 'message' => 'Dependencies installed successfully'];
|
||||
@@ -1033,7 +1033,7 @@ class AdminController extends AdminBaseController
|
||||
$data = $this->post;
|
||||
$package = $data['package'] ?? '';
|
||||
try {
|
||||
$result = Gpm::install($package, ['theme' => $type === 'theme']);
|
||||
$result = Gpm::install($package, ['theme' => $type === 'themes']);
|
||||
} catch (\Exception $e) {
|
||||
/** @var Debugger $debugger */
|
||||
$debugger = $this->grav['debugger'];
|
||||
|
||||
Reference in New Issue
Block a user