1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Precaution for if newforumposts_menu.php is activated twice.

This commit is contained in:
Cameron
2017-04-13 09:44:00 -07:00
parent b38183035d
commit 6f47baed6c

View File

@@ -14,7 +14,8 @@ e107::lan('forum','menu',true); // English_menu.php or {LANGUAGE}_menu.php
include_once(e_PLUGIN.'forum/forum_class.php'); include_once(e_PLUGIN.'forum/forum_class.php');
if(!class_exists('forum_newforumposts_menu'))
{
class forum_newforumposts_menu // plugin folder + menu name (without the .php) class forum_newforumposts_menu // plugin folder + menu name (without the .php)
{ {
@@ -218,7 +219,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
} }
} }
}
new forum_newforumposts_menu; new forum_newforumposts_menu;