Skip to content

Commit

Permalink
QA: Fix: #6053 - Wrong constant use
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Jan 12, 2025
1 parent 030cd6b commit fb589c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function install_unlink($file) {
$full_file = $file;
}

if (strpos($full_file, CACTI_BASE_PATH) === false) {
if (strpos($full_file, CACTI_PATH_BASE) === false) {
log_install_high('file', "Not Unlinking file: $full_file due to it not being in the Cacti base path.");
}

Expand All @@ -314,7 +314,7 @@ function install_rmdir($directory) {
$directory = CACTI_PATH_BASE . '/' . $directory;
}

if (strpos($directory, CACTI_BASE_PATH) === false) {
if (strpos($directory, CACTI_PATH_BASE) === false) {
log_install_high('file', "Not Unlinking directory: $directory due to it not being in the Cacti base path.");
}

Expand All @@ -341,7 +341,7 @@ function install_rmdir_recursive($directory, $delete_parent = null) {
$directory = CACTI_PATH_BASE . '/' . $directory;
}

if (strpos($directory, CACTI_BASE_PATH) === false) {
if (strpos($directory, CACTI_PATH_BASE) === false) {
log_install_high('file', "Not Unlinking directory: $directory due to it not being in the Cacti base path.");
}

Expand Down

0 comments on commit fb589c4

Please sign in to comment.