From 7efc2bd61ece6c9ea17d468d7b11f2dc811819ae Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Tue, 30 Apr 2024 04:38:54 -0700 Subject: [PATCH] Check theme image dir for new-articles.png befure using default location. --- Rocksolid_Light/rocksolid/newsportal.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 8d7f41b..3fbed2f 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -664,7 +664,7 @@ function groups_show($gruppen) } else { $lineclass = "np_thread_line1"; } - if($new) { + if ($new) { $latest_link = '&time=' . $userdata[$g->name]; } else { $latest_link = ''; @@ -677,7 +677,11 @@ function groups_show($gruppen) $latest_image = '../common/images/latest.png'; } if ($new) { - $latest_image = '../common/images/new-articles.png'; + if ((isset($_SESSION['theme'])) && file_exists('../common/themes/' . $_SESSION['theme'] . '/images/new-articles.png')) { + $latest_image = '../common/themes/' . $_SESSION['theme'] . '/images/new-articles.png'; + } else { + $latest_image = '../common/images/new-articles.png'; + } $groupdisplay .= ''; } else { $groupdisplay .= '';