Skip to content

Commit e74d92d

Browse files
committed
Update pre-update.blade.php
1 parent 5070ff2 commit e74d92d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<?php
2-
// Runs before updating
3-
4-
if(trim(file_get_contents(base_path("version.json"))) < '4.0.0')file_put_contents(base_path('config/advanced-config.php'), file_get_contents(base_path('storage/templates/advanced-config.php')));
1+
<?php // Runs before updating
2+
if(trim(file_get_contents(base_path("version.json"))) < '4.0.0'){
3+
try {
4+
$file = base_path('storage/RSTAC');
5+
if (!file_exists($file)) {
6+
$handleFile = fopen($file, 'w');
7+
fclose($handleFile);
8+
}
9+
} catch (Exception $e) {}
10+
}

0 commit comments

Comments
 (0)