1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

#4299: Wrap more potentially undefined constants

In:
* Forums
* /e107_admin/menus.php
This commit is contained in:
Nick Liu
2021-07-13 12:49:05 +02:00
parent bc1340af12
commit ccf0f037aa
7 changed files with 18 additions and 13 deletions

View File

@@ -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;

View File

@@ -17,6 +17,7 @@ if (!getperms('P'))
}
e107::lan('forum', 'global', true);
e107::lan('forum', 'admin', true);
e107::lan('forum', 'front', true);

View File

@@ -460,7 +460,7 @@ class forumStats
$frm = e107::getForm();
$breadarray = array(
array('text'=> e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME), 'url' => e107::url('forum','index') ),
array('text'=> e107::pref('forum','title', defset('LAN_PLUGIN_FORUM_NAME')), 'url' => e107::url('forum','index') ),
array('text'=>LAN_FORUM_6013, 'url'=>null)
);

View File

@@ -12,7 +12,7 @@ if (!defined('e107_INIT')) { exit; }
if(!defined("USER_WIDTH") && !deftrue('BOOTSTRAP')){ define("USER_WIDTH","width:95%;margin-left:auto;margin-right:auto"); }
$FORUM_PREVIEW = "<div>
<table style='".USER_WIDTH."' class='fborder table'>
<table style='".defset('USER_WIDTH')."' class='fborder table'>
<tr>
<td colspan='2' class='fcaption' style='vertical-align:top'>".LAN_FORUM_3005.
($action != "nt" ? "</td>" : " ( ".LAN_FORUM_3011.": {PREVIEW_SUBJECT} )</td>")."