Check theme image dir for new-articles.png befure using default location.
This commit is contained in:
parent
9495538f86
commit
7efc2bd61e
|
@ -677,7 +677,11 @@ function groups_show($gruppen)
|
|||
$latest_image = '../common/images/latest.png';
|
||||
}
|
||||
if ($new) {
|
||||
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 .= '<img src="' . $latest_image . '" title="New articles">';
|
||||
} else {
|
||||
$groupdisplay .= '<img src="' . $latest_image . '" title="Recent articles">';
|
||||
|
|
Loading…
Reference in New Issue