mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Precaution for if newforumposts_menu.php is activated twice.
This commit is contained in:
@@ -14,9 +14,10 @@ e107::lan('forum','menu',true); // English_menu.php or {LANGUAGE}_menu.php
|
||||
include_once(e_PLUGIN.'forum/forum_class.php');
|
||||
|
||||
|
||||
|
||||
class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
if(!class_exists('forum_newforumposts_menu'))
|
||||
{
|
||||
class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
{
|
||||
|
||||
private $plugPref = null;
|
||||
private $menuPref = null;
|
||||
@@ -122,7 +123,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
$list .= $tp->parseTemplate($template['item'], true, $sc);
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
$datestamp = $tp->toDate($row['post_datestamp'], 'relative');
|
||||
$id = $row['thread_id'];
|
||||
$topic = ($row['thread_datestamp'] == $row['post_datestamp'] ? '' : 'Re:');
|
||||
@@ -182,7 +183,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
}
|
||||
|
||||
$list .= "</div></li>";
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
@@ -217,8 +218,8 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
new forum_newforumposts_menu;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user