mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
moved make_update_path to paths library
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user