Fixes PlImage.
authorStéphane Jacob <sj@m4x.org>
Mon, 10 Jan 2011 13:21:17 +0000 (14:21 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 10 Jan 2011 20:01:39 +0000 (21:01 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/plimage.php

index 6769f4d..a8113db 100644 (file)
@@ -49,7 +49,7 @@ class PlImage {
     public function path()
     {
         if (empty($this->data)) {
-            return $file;
+            return $this->file;
         } else {
             $name = md5($this->data);
             $GLOBALS['img' . $name] = $this->data;