From 9bb0e1984d4d8aa958e6472444e20ae05c17a10d Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 30 Dec 2011 00:30:01 +1100 Subject: [PATCH] Imagick's clonse() depreciated as of 3.1.0b1; use clone PHP keyword and bump minimum PHP version to 5.2.5 --- README.md | 2 +- inc/image.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90562003..c96fc895 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Tinyboard is an imageboard software package written in PHP. It aims to maintain a stable, fast, clean, robust and user-friendly engine for imageboards. You can contact the development team or learn more at [tinyboard.org](http://tinyboard.org/) or on IRC at [irc.datnode.net #tinyboard](irc://irc.datnode.net/tinyboard). ## Requirements -1. PHP >= 5.2.0 +1. PHP >= 5.2.5 2. [mbstring](http://www.php.net/manual/en/mbstring.installation.php) (--enable-mbstring) 3. [PHP-GD](http://php.net/manual/en/book.image.php) 4. [PHP-PDO](http://php.net/manual/en/book.pdo.php) with appropriate [driver for your database](http://www.php.net/manual/en/pdo.drivers.php) (only MySQL is supported at the moment) diff --git a/inc/image.php b/inc/image.php index 5c8e3321..9f07ef2c 100644 --- a/inc/image.php +++ b/inc/image.php @@ -163,7 +163,7 @@ return $this->image->destroy(); } public function resize() { - $this->image = $this->original->clone(); + $this->image = clone $this->original; $this->image->scaleImage($this->width, $this->height, false); }