mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
49654c5feb
commit
26921b47c3
@ -227,7 +227,7 @@ Here are the following things need to be done in order to integrate PHPlot with
|
||||
$file_arr = get_dir_file_info($this->base_path);
|
||||
$now = time();
|
||||
if(is_array($file_arr)) {
|
||||
$regexp = '# ^'. $this->random_file_prefix."_.{{$this->random_file_name_length}}_\d+\..+$#u";
|
||||
$regexp = '#^'. $this->random_file_prefix."_.{{$this->random_file_name_length}}_\d+\..+$#u";
|
||||
foreach($file_arr as $k => $v) {
|
||||
if(preg_match($regexp, basename($v['name']))) {
|
||||
// Delete old files
|
||||
|
Loading…
x
Reference in New Issue
Block a user