realpath() fix from trunk
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@1011 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
90fcccdab0
commit
327d0dd51f
@ -6,7 +6,7 @@ class Upload extends Extension {
|
|||||||
public function receive_event($event) {
|
public function receive_event($event) {
|
||||||
if(is_null($this->theme)) $this->theme = get_theme_object("upload", "UploadTheme");
|
if(is_null($this->theme)) $this->theme = get_theme_object("upload", "UploadTheme");
|
||||||
|
|
||||||
$is_full = (disk_free_space("./images/") < 100*1024*1024);
|
$is_full = (disk_free_space(realpath("./images/")) < 100*1024*1024);
|
||||||
|
|
||||||
if(is_a($event, 'InitExtEvent')) {
|
if(is_a($event, 'InitExtEvent')) {
|
||||||
global $config;
|
global $config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user