Убрано TODO из класса File.getWebName(). Добавлена проверка на существование файла и соответсвующее разделение логики в метода получения пути к файлу File.getWebName().

This commit is contained in:
Alexander Demidov
2013-09-23 11:10:30 +04:00
parent e137c20cd7
commit d3c15f3854

View File

@ -90,11 +90,10 @@ abstract class File
/** /**
* @return string * @return string
* TODO: Сделать настройку для изображения-заглушки применительно к Image
*/ */
public function getWebName() public function getWebName()
{ {
return $this->path . '/' . $this->filename; return (($this->getIsNoEmpty()) ? ($this->path . '/' . $this->filename) : '');
} }
public function __toString() public function __toString()