File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
$ addon = rex_addon::get ('zip_install ' );
3
3
4
+ // Check if the installed version is less than 1.5
4
5
if (rex_version::compare ($ addon ->getVersion (), '1.5 ' , '< ' )) {
5
6
$ tmpPath = rex_path::addon ('zip_install ' , 'tmp ' );
6
7
7
8
if (is_dir ($ tmpPath )) {
8
9
// Try to delete the directory
9
10
if (!rex_dir::delete ($ tmpPath )) {
10
11
// If deletion fails, log a warning
11
- rex_logger::logWarning ('The temporary directory ' . $ tmpPath . ' could not be deleted. ' );
12
+ rex_logger::log ('The temporary directory ' . $ tmpPath . ' could not be deleted. ' , null , rex_logger:: WARNING );
12
13
} else {
13
- rex_logger::logInfo ('The temporary directory ' . $ tmpPath . ' has been successfully deleted. ' );
14
+ // Log successful deletion as a notice
15
+ rex_logger::log ('The temporary directory ' . $ tmpPath . ' has been successfully deleted. ' , null , rex_logger::NOTICE );
14
16
}
15
17
}
16
18
}
You can’t perform that action at this time.
0 commit comments