From 8b1f2a093630b164d01797d4d8cc43a591e71c6f Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 10 Nov 2023 22:08:25 -0500 Subject: [PATCH] Certificate: Fix default.css in new thems - refs BT#21007 --- assets/vue/router/index.js | 2 +- .../Migrations/Schema/V200/Version20231110194300.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/vue/router/index.js b/assets/vue/router/index.js index c65dfb2d16..ef197cb322 100644 --- a/assets/vue/router/index.js +++ b/assets/vue/router/index.js @@ -34,7 +34,7 @@ import Index from "../pages/Index.vue" import Home from "../pages/Home.vue" import Login from "../pages/Login.vue" import Faq from "../pages/Faq.vue" -import Contact from "../pages/Contact.vue" +//import Contact from "../pages/Contact.vue" import Demo from "../pages/Demo.vue" import { useCidReqStore } from "../store/cidReq" diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20231110194300.php b/src/CoreBundle/Migrations/Schema/V200/Version20231110194300.php index 89593d7560..7a99ae5e04 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20231110194300.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20231110194300.php @@ -60,6 +60,7 @@ final class Version20231110194300 extends AbstractMigrationChamilo $sourceDir = $rootPath.'/app/Resources/public/css/themes'; $destinationDir = $rootPath.'/assets/css/themes/'; + $chamiloDefaultCssPath = $destinationDir . 'chamilo/default.css'; if (!file_exists($sourceDir)) { return; @@ -78,6 +79,11 @@ final class Version20231110194300 extends AbstractMigrationChamilo if (!file_exists($destinationPath)) { $this->copyDirectory($sourcePath, $destinationPath); $newThemes[] = $folderName; + + if (file_exists($chamiloDefaultCssPath)) { + $newThemeDefaultCssPath = $destinationPath . '/default.css'; + copy($chamiloDefaultCssPath, $newThemeDefaultCssPath); + } } } }