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:
shish 2008-09-01 12:56:48 +00:00
parent 90fcccdab0
commit 327d0dd51f

View File

@ -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;