diff options
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/mfile.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php index c56692c93..7d6056a9c 100644 --- a/application/models/mfile.php +++ b/application/models/mfile.php @@ -142,6 +142,9 @@ class Mfile extends CI_Model { return false; } + // 0 age disables age checks + if ($this->config->item('upload_max_age') == 0) return true; + // small files don't expire if (filesize($file) <= $this->config->item("small_upload_size")) { return true; |