Certificate: Fix default.css in new thems - refs BT#21007

pull/4988/head
christian 1 year ago
parent 4386da580e
commit 8b1f2a0936
  1. 2
      assets/vue/router/index.js
  2. 6
      src/CoreBundle/Migrations/Schema/V200/Version20231110194300.php

@ -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"

@ -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);
}
}
}
}

Loading…
Cancel
Save