Internal: Delete var/theme after migration to var/themes - refs BT#21621

pull/5639/head
Yannick Warnier 5 months ago
parent bb0a675295
commit a7f561b3a5
  1. 5
      src/CoreBundle/Migrations/Schema/V200/Version20240704185300.php

@ -36,7 +36,7 @@ class Version20240704185300 extends AbstractMigrationChamilo
if ($entry->isDir()) {
error_log(
sprintf(
"Moving theme directory: %s %s",
"Moving theme directory: %s to %s",
$entry->getRealPath(),
$themesDirectory.'/'
)
@ -44,5 +44,6 @@ class Version20240704185300 extends AbstractMigrationChamilo
$filesystem->rename($entry->getRealPath(), $themesDirectory.'/'.$entry->getRelativePathname());
}
}
$filesystem->remove($themeDirectory);
}
}
}

Loading…
Cancel
Save