realpath() should make things work better on windows
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1009 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
31573f5ff9
commit
af3cbba180
@ -6,7 +6,7 @@ class Upload implements Extension {
|
|||||||
public function receive_event(Event $event) {
|
public function receive_event(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($event instanceof InitExtEvent) {
|
if($event instanceof InitExtEvent) {
|
||||||
global $config;
|
global $config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user