From b3760d274fc5c5e0506f149d622be411197d0644 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Tue, 1 Jun 2021 08:32:32 +0800 Subject: [PATCH] * Fix bug#12679. --- module/program/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/program/model.php b/module/program/model.php index 36e516e070..a0f28f6612 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -78,7 +78,9 @@ class programModel extends model */ public function getByID($programID = 0) { - return $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($programID)->andWhere('`type`')->eq('program')->fetch(); + $program = $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($programID)->andWhere('`type`')->eq('program')->fetch(); + $program = $this->loadModel('file')->replaceImgURL($program, 'desc'); + return $program; } /**