<?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 *
public function path()
{
if (empty($this->data)) {
- return $file;
+ return $this->file;
} else {
$name = md5($this->data);
$GLOBALS['img' . $name] = $this->data;