moved make_update_path to paths library

This commit is contained in:
HB9HIL
2024-05-05 10:05:48 +02:00
parent 38b119f0c1
commit 33d7e28275
4 changed files with 24 additions and 24 deletions

View File

@@ -20,4 +20,16 @@ class Paths
$CI->load->model('Qsl_model');
return $CI->Qsl_model->get_imagePath();
}
function make_update_path($path) {
$CI = & get_instance();
$path = "updates/" . $path;
$datadir = $CI->config->item('datadir');
if(!$datadir) {
return $path;
}
return $datadir . "/" . $path;
}
}