mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-05-07 02:25:45 +02:00
Update Image.php
This commit is contained in:
committed by
GitHub
parent
3361dd34e4
commit
0fd025ba3e
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user