Fixed thumbnail generating
Migrating to PHP5.6 revealed that thumbnail generating used relative paths instead of absolute paths.
This commit is contained in:
parent
9c26087b46
commit
330f5c344c
1 changed files with 3 additions and 2 deletions
|
@ -372,12 +372,12 @@ final class PostEntity extends AbstractEntity implements IValidatable, ISerializ
|
|||
|
||||
public function getCustomThumbnailSourcePath()
|
||||
{
|
||||
return Core::getConfig()->main->thumbnailsPath . DS . $this->name . '.thumb_source';
|
||||
return TextHelper::absolutePath(Core::getConfig()->main->thumbnailsPath . DS . $this->name . '.thumb_source');
|
||||
}
|
||||
|
||||
public function getThumbnailPath()
|
||||
{
|
||||
return Core::getConfig()->main->thumbnailsPath . DS . $this->name . '.thumb';
|
||||
return TextHelper::absolutePath(Core::getConfig()->main->thumbnailsPath . DS . $this->name . '.thumb');
|
||||
}
|
||||
|
||||
public function hasCustomThumbnail()
|
||||
|
@ -424,6 +424,7 @@ final class PostEntity extends AbstractEntity implements IValidatable, ISerializ
|
|||
}
|
||||
else
|
||||
{
|
||||
#var_dump( $this->getContentPath());die;
|
||||
return $thumbnailGenerator->generateFromFile(
|
||||
$this->getContentPath(),
|
||||
$dstPath,
|
||||
|
|
Loading…
Reference in a new issue