Skip to content

Commit

Permalink
FIX plxShow->artThumbnail()
Browse files Browse the repository at this point in the history
  • Loading branch information
haruka-7 committed May 22, 2020
1 parent 93aa66d commit 04d26b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/lib/class.plx.show.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,12 @@ public function artThumbnail($format='<a href="#img_url"><img class="art_thumbna

$filename = trim($this->plxMotor->plxRecord_arts->f('thumbnail'));

if(empty($filename) and empty($echo)) { return false; }

if(!empty($filename)) {
$imgUrl = $this->plxMotor->urlRewrite($filename);
$imgThumb = plxUtils::thumbName($filename);
} else {
$imgUrl = '';
$echo = false;
}

if($article) {
Expand Down

0 comments on commit 04d26b9

Please sign in to comment.