v.2.33
Fix migration
This commit is contained in:
@@ -54,7 +54,7 @@ class UpdateCoreInterface230 extends Migration
|
||||
if (!is_dir(CORE_PATH . '/../../web/libs/datatables/backup/')) {
|
||||
mkdir(CORE_PATH . '/../../web/libs/datatables/backup/', 0777);
|
||||
}
|
||||
$old_files = array_diff(scandir(CORE_PATH . '/../../web/libs/datatables/'), array('.', '..'));
|
||||
$old_files = array_diff(scandir(CORE_PATH . '/../../web/libs/datatables/'), array('.', '..', 'backup'));
|
||||
foreach ($old_files as $old_file) {
|
||||
copy(CORE_PATH . '/../../web/libs/datatables/' . $old_file, CORE_PATH . '/../../web/libs/datatables/backup/' . $old_file);
|
||||
unlink(CORE_PATH . '/../../web/libs/datatables/' . $old_file);
|
||||
|
||||
Reference in New Issue
Block a user