diff --git a/classes/Image.php b/classes/Image.php index 05d3fe4..7042d90 100644 --- a/classes/Image.php +++ b/classes/Image.php @@ -13,12 +13,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + AutoIndex PHP Script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -29,6 +29,7 @@ if (!defined('IN_AUTOINDEX') || !IN_AUTOINDEX) die('bad class init...'); } + /** * Generates a thumbnail of an image file. * @@ -229,10 +230,10 @@ class Image */ public function __toString() { - $thumbnail_height = $this -> height; - $file = $this -> filename; + $thumbnail_height = $this->height; + $file = $this->filename; $file_icon = new Icon($file); - $this -> icon = $file_icon -> __toString(); + $this->icon = $file_icon->__toString(); if (!@is_file($file)) { header('HTTP/1.0 404 Not Found');