Allows addition of outsite JS scripts.
[platal.git] / classes / plimage.php
index 99519c2..a8113db 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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;