diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-26 17:29:00 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-26 17:29:00 +0100 |
commit | e0200f5968480f50cb503c550dff5ab79a514b25 (patch) | |
tree | 915269f7533d13f8235dd2aa7323f89c48ed7e69 /includes/inc_stream.php | |
parent | 398df164f62f5296fc7cd186eae02891881f5dc0 (diff) | |
download | istreamdev-e0200f5968480f50cb503c550dff5ab79a514b25.tar.gz istreamdev-e0200f5968480f50cb503c550dff5ab79a514b25.tar.bz2 |
Fixed chan logo when chan name has a /
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-x | includes/inc_stream.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php index b98b132..d6297e0 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -25,12 +25,14 @@ if (infostreamexist()) switch ($type) { case 1: - $logopath = "logos/" .$realname .".png"; + $channoslash = preg_replace("$/$", " ", $realname); + $logopath = "logos/" .$channoslash .".png"; if (!file_exists($logopath)) $logopath = "logos/nologoTV.png"; break; case 2: - $logopath = "logos/" .$realname .".png"; + $channoslash = preg_replace("$/$", " ", $realname); + $logopath = "logos/" .$channslash .".png"; if (!file_exists($logopath)) $logopath = "logos/nologoREC.png"; break; @@ -129,12 +131,14 @@ else switch ($type) { case 1: - $logopath = "logos/" .$realname .".png"; + $channoslash = preg_replace("$/$", " ", $realname); + $logopath = "logos/" .$channoslash .".png"; if (!file_exists($logopath)) $logopath = "logos/nologoTV.png"; break; case 2: - $logopath = "logos/" .$realname .".png"; + $channoslash = preg_replace("$/$", " ", $realname); + $logopath = "logos/" .$channoslash .".png"; if (!file_exists($logopath)) $logopath = "logos/nologoREC.png"; break; |