mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 07:56:09 +02:00
Updating a theme should always keep the custom files
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
1. [](#new)
|
||||
* Added `MediaUploadTrait::checkFileMetadata()` method
|
||||
1. [](#improved)
|
||||
* Updating a theme should always keep the custom files [getgrav/grav-plugin-admin#2135](https://github.com/getgrav/grav-plugin-admin/issues/2135)
|
||||
1. [](#bugfix)
|
||||
* Fixed broken numeric language codes in Flex Pages [#3332](https://github.com/getgrav/grav/issues/3332)
|
||||
* Fixed broken `exif_imagetype()` twig function
|
||||
|
||||
@@ -135,7 +135,10 @@ class Installer
|
||||
}
|
||||
|
||||
if (!$options['sophisticated']) {
|
||||
if ($options['theme']) {
|
||||
$isTheme = $options['theme'] ?? false;
|
||||
// Make sure that themes are always being copied, even if option was not set!
|
||||
$isTheme = $isTheme || preg_match('|/themes/[^/]+|ui', $install_path);
|
||||
if ($isTheme) {
|
||||
self::copyInstall($extracted, $install_path);
|
||||
} else {
|
||||
self::moveInstall($extracted, $install_path);
|
||||
|
||||
Reference in New Issue
Block a user