mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +02:00
#4299: Wrap more potentially undefined constants
In: * Forums * /e107_admin/menus.php
This commit is contained in:
@@ -16,8 +16,8 @@ class forum_dashboard // include plugin-folder in the name.
|
||||
$sql = e107::getDb();
|
||||
$forum_posts = $sql->count('forum_post');
|
||||
|
||||
$var[0]['icon'] = E_16_FORUM;
|
||||
$var[0]['title'] = LAN_PLUGIN_FORUM_POSTS;
|
||||
$var[0]['icon'] = defset('E_16_FORUM');
|
||||
$var[0]['title'] = defset('LAN_PLUGIN_FORUM_POSTS');
|
||||
$var[0]['url'] = e_PLUGIN."forum/forum_admin.php";
|
||||
$var[0]['total'] = $forum_posts;
|
||||
|
||||
@@ -30,8 +30,8 @@ class forum_dashboard // include plugin-folder in the name.
|
||||
$sql = e107::getDb();
|
||||
$reported_posts = $sql->count('generic', '(*)', "WHERE gen_type='reported_post' OR gen_type='Reported Forum Post'");
|
||||
|
||||
$var[0]['icon'] = E_16_FORUM;
|
||||
$var[0]['title'] = ADLAN_LAT_6;
|
||||
$var[0]['icon'] = defset('E_16_FORUM');
|
||||
$var[0]['title'] = defset('ADLAN_LAT_6');
|
||||
$var[0]['url'] = e_PLUGIN."forum/forum_admin.php?mode=report&action=list";
|
||||
$var[0]['total'] = $reported_posts;
|
||||
|
||||
|
Reference in New Issue
Block a user