Merge pull request #317 from HungryFeline/patch-1

Let the admin define how much space should be free
This commit is contained in:
Shish 2013-07-07 03:28:44 -07:00
commit 00e297c7d4
2 changed files with 2 additions and 3 deletions

View File

@ -35,6 +35,7 @@ _d("NICE_URLS", false); // boolean force niceurl mode
_d("WH_SPLITS", 1); // int how many levels of subfolders to put in the warehouse
_d("VERSION", 'trunk'); // string shimmie version
_d("TIMEZONE", null); // string timezone
_d("MIN_FREE_SPACE",100*1024*1024); // int disable uploading if there's less than MIN_FREE_SPACE bytes free space
_d("CORE_EXTS", "bbcode,user,mail,upload,image,view,handle_pixel,ext_manager,setup,upgrade,handle_404,comment,tag_list,index,tag_edit,alias_editor"); // extensions to always enable
_d("EXTRA_EXTS", ""); // optional extra extensions

View File

@ -56,9 +56,7 @@ class Upload extends Extension {
$this->is_full = false;
}
else {
// TODO: This size limit should be configureable by the admin...
// currently set to 100 MB
$this->is_full = $free_num < 100*1024*1024;
$this->is_full = $free_num < MIN_FREE_SPACE;
}
}