From 618d5edf36c982a5498957dd935ea1a8cb244fed Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Tue, 18 Feb 2014 17:35:45 +0400 Subject: [PATCH] =?UTF-8?q?MIRSPORTA-255=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5/=D1=80=D0=B5=D0=B4=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=86?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=D0=BE=D0=B2=20=D0=B2=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BA=D0=B5=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Image.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Image.class.php b/Image.class.php index 96c4df1..a6d386b 100644 --- a/Image.class.php +++ b/Image.class.php @@ -44,7 +44,14 @@ abstract class Image extends File */ public static function getIsSubClass($class) { - return (get_parent_class($class) == __CLASS__); + $parent_class = get_parent_class($class); + if ($parent_class == __CLASS__) { + return true; + } + if (get_parent_class($parent_class)) { + return self::getIsSubClass($parent_class); + } + return false; } public static function getSizes()