From 5a3ea06b3b199871d97e5c49f84bdaff08c6c85a Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 22 Dec 2007 19:18:39 +0000 Subject: [PATCH] Support theme icon - thanks Josephs --- .../newforumposts_main/newforumposts_main.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/e107_plugins/newforumposts_main/newforumposts_main.php b/e107_plugins/newforumposts_main/newforumposts_main.php index 0c4681102..010a3a89a 100644 --- a/e107_plugins/newforumposts_main/newforumposts_main.php +++ b/e107_plugins/newforumposts_main/newforumposts_main.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/newforumposts_main/newforumposts_main.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:30 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2007-12-22 19:18:39 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -75,7 +75,14 @@ if (!isset($gen) || !is_object($gen)) { $gen = new convert; } -$ICON = ""; +if (file_exists(THEME."forum/new_small.png")) +{ + $ICON = ""; +} +else +{ + $ICON = ""; +} $TOTAL_TOPICS = $sql->db_Count("forum_t", "(*)", " WHERE thread_parent='0' "); $TOTAL_REPLIES = $sql->db_Count("forum_t", "(*)", " WHERE thread_parent!='0' "); $sql->db_Select_gen("SELECT sum(thread_views) FROM ".MPREFIX."forum_t");