From d3c15f3854c09fcc88d1ced6154be19148ac832d Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 23 Sep 2013 11:10:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20TODO=20?= =?UTF-8?q?=D0=B8=D0=B7=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0=20File.getW?= =?UTF-8?q?ebName().=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D1=83=D1=89=D0=B5=D1=81=D1=82=D0=B2=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= =?UTF-8?q?=20=D0=B8=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D0=B2=D1=83=D1=8E=D1=89=D0=B5=D0=B5=20=D1=80=D0=B0=D0=B7=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=BE=D0=B3=D0=B8?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=83=D1=82=D0=B8=20=D0=BA=20=D1=84=D0=B0=D0=B9=D0=BB=D1=83=20?= =?UTF-8?q?File.getWebName().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- File.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/File.class.php b/File.class.php index d82c6cc..37ffa2d 100644 --- a/File.class.php +++ b/File.class.php @@ -90,11 +90,10 @@ abstract class File /** * @return string - * TODO: Сделать настройку для изображения-заглушки применительно к Image */ public function getWebName() { - return $this->path . '/' . $this->filename; + return (($this->getIsNoEmpty()) ? ($this->path . '/' . $this->filename) : ''); } public function __toString()