mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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');
|
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)
|
||||||
|
{
|
||||||
|
|
||||||
private $plugPref = null;
|
private $plugPref = null;
|
||||||
private $menuPref = 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);
|
$list .= $tp->parseTemplate($template['item'], true, $sc);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$datestamp = $tp->toDate($row['post_datestamp'], 'relative');
|
$datestamp = $tp->toDate($row['post_datestamp'], 'relative');
|
||||||
$id = $row['thread_id'];
|
$id = $row['thread_id'];
|
||||||
$topic = ($row['thread_datestamp'] == $row['post_datestamp'] ? '' : 'Re:');
|
$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>";
|
$list .= "</div></li>";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -217,8 +218,8 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
new forum_newforumposts_menu;
|
new forum_newforumposts_menu;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user