From 3b33d20cf6f8bfe741aac7cdc4e2ba040ed88b73 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 1 Nov 2018 20:27:21 -0300 Subject: [PATCH] Bug fixes, the method thumbCoverImage not was returning the filename --- bl-kernel/pagex.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index 07f68242..69efa594 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -304,20 +304,20 @@ class Page { // Returns the endpoint of the thumbnail cover image, FALSE if the page doesn't have a cover image public function thumbCoverImage() { - $coverImageFilename = $this->coverImage(false); - if ($coverImageFilename==false) { + $filename = $this->coverImage(false); + if ($filename==false) { return false; } // Check is external cover image - if (filter_var($coverImageFilename, FILTER_VALIDATE_URL)) { - return $coverImageFilename; + if (filter_var($filename, FILTER_VALIDATE_URL)) { + return $filename; } if (IMAGE_RESTRICT) { return DOMAIN_UPLOADS_PAGES.$this->uuid().'/thumbnails/'.$filename; } - return DOMAIN_UPLOADS_THUMBNAILS.$coverImageFilename; + return DOMAIN_UPLOADS_THUMBNAILS.$filename; } // Returns TRUE if the content has the text splited