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:
@@ -14,7 +14,8 @@ e107::lan('forum','menu',true); // English_menu.php or {LANGUAGE}_menu.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)
|
||||
{
|
||||
|
||||
@@ -218,7 +219,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
new forum_newforumposts_menu;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user