diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2025-07-14 09:36:18 +0200 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2025-07-14 09:36:18 +0200 |
| commit | 4355ded9bc56e0b06fbceffe61ddc37061cc3bc7 (patch) | |
| tree | 348493b6b0fd1286b86f213e5077413b97cf9747 /lib/models/OERReview.php | |
| parent | 1e59dd2dacc51b3313d7780b66d4bf72e0484f86 (diff) | |
Color-Themes-System, fixes #5361
Closes #5361
Merge request studip/studip!4038
Diffstat (limited to 'lib/models/OERReview.php')
| -rw-r--r-- | lib/models/OERReview.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/models/OERReview.php b/lib/models/OERReview.php index 4ae7fa3..09dc73f 100644 --- a/lib/models/OERReview.php +++ b/lib/models/OERReview.php @@ -204,15 +204,15 @@ class OERReview extends BlubberThread $data['thread_posting']['html'] .= "<div>"; $rating = round($this['metadata']['rating'], 1); $v = $rating >= 0.75 ? "" : ($rating >= 0.25 ? "-halffull" : "-empty"); - $data['thread_posting']['html'] .= Icon::create("star$v", "info")->asImg(25); + $data['thread_posting']['html'] .= Icon::create("star{$v}", 'info')->asSvg(25); $v = $rating >= 1.75 ? "" : ($rating >= 1.25 ? "-halffull" : "-empty"); - $data['thread_posting']['html'] .= Icon::create("star$v", "info")->asImg(25); + $data['thread_posting']['html'] .= Icon::create("star{$v}", 'info')->asSvg(25); $v = $rating >= 2.75 ? "" : ($rating >= 2.25 ? "-halffull" : "-empty"); - $data['thread_posting']['html'] .= Icon::create("star$v", "info")->asImg(25); + $data['thread_posting']['html'] .= Icon::create("star{$v}", 'info')->asSvg(25); $v = $rating >= 3.75 ? "" : ($rating >= 3.25 ? "-halffull" : "-empty"); - $data['thread_posting']['html'] .= Icon::create("star$v", "info")->asImg(25); + $data['thread_posting']['html'] .= Icon::create("star{$v}", 'info')->asSvg(25); $v = $rating >= 4.75 ? "" : ($rating >= 4.25 ? "-halffull" : "-empty"); - $data['thread_posting']['html'] .= Icon::create("star$v", "info")->asImg(25); + $data['thread_posting']['html'] .= Icon::create("star{$v}", 'info')->asSvg(25); $data['thread_posting']['html'] .= "</div>"; return $data; |
