diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php
index e9b04f5d9..7b25749ec 100644
--- a/e107_plugins/forum/forum.php
+++ b/e107_plugins/forum/forum.php
@@ -233,24 +233,23 @@ $fVars->FORUMINFO =
str_replace("[x]", ($total_topics+$total_replies), LAN_FORUM_0031)." ($total_topics ".($total_topics == 1 ? LAN_FORUM_0032 : LAN_FORUM_0033).", $total_replies ".($total_replies == 1 ? LAN_FORUM_0034 : LAN_FORUM_0035).")
".(!defined("e_TRACKING_DISABLED") ? "" : "
".$users." ".($users == 1 ? LAN_FORUM_0059 : LAN_FORUM_0060)." (".$member_users." ".($member_users == 1 ? LAN_FORUM_0061 : LAN_FORUM_0062).", ".$guest_users." ".($guest_users == 1 ? LAN_FORUM_0063 : LAN_FORUM_0064).")
".LAN_FORUM_0066." ".$total_members."
".LAN_FORUM_0065." ".$nuser_name.".\n"); // FIXME cannot find other references to e_TRACKING_DISABLED, use pref?
-if (!isset($FORUM_MAIN_START))
-{
- if (file_exists(THEME.'forum_template.php'))
- {
- include_once(THEME.'forum_template.php');
- }
- elseif(file_exists(THEME.'templates/forum/forum_template.php'))
- {
- require_once(THEME.'templates/forum/forum_template.php');
- }
-}
+// FIX - core template always override theme template
+// Include core template
include(e_PLUGIN.'forum/templates/forum_template.php');
+// Override with theme template
+if (file_exists(THEME.'forum_template.php'))
+{
+ include_once(THEME.'forum_template.php');
+}
+elseif(file_exists(THEME.'templates/forum/forum_template.php'))
+{
+ require_once(THEME.'templates/forum/forum_template.php');
+}
if(is_array($FORUM_TEMPLATE) && deftrue('BOOTSTRAP',false)) // new v2.x format.
{
-
- $FORUM_MAIN_START = $FORUM_TEMPLATE['main-start'];
+ $FORUM_MAIN_START = $FORUM_TEMPLATE['main-start'];
$FORUM_MAIN_PARENT = $FORUM_TEMPLATE['main-parent'];
$FORUM_MAIN_FORUM = $FORUM_TEMPLATE['main-forum'];
$FORUM_MAIN_END = $FORUM_TEMPLATE['main-end'];