clear compiled after update

This commit is contained in:
Ibnu Maksum 2024-02-20 11:34:08 +07:00
parent 63bba0efb0
commit c8696f8d1a
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 14 additions and 6 deletions

View File

@ -423,5 +423,7 @@
"Admin": "Admin",
"Password_should_be_minimum_6_characters": "Password should be minimum 6 characters",
"Add_User": "Add User",
"Send_Notification": "Send Notification"
"Send_Notification": "Send Notification",
"Code": "Code",
"Send_To_Customer": "Send To Customer"
}

View File

@ -119,6 +119,12 @@ if (empty($step)) {
$step++;
} else {
$path = 'ui/compiled/';
$files = scandir($path);
foreach ($files as $file) {
if (is_file($path . $file)) {
unlink($path . $file);
}
}
$version = json_decode(file_get_contents('version.json'), true)['version'];
$continue = false;
}