diff --git a/e107_admin/auth.php b/e107_admin/auth.php
index dc39fd06f..46613ee2b 100644
--- a/e107_admin/auth.php
+++ b/e107_admin/auth.php
@@ -86,7 +86,7 @@ if (ADMIN)
$asuser = e107::getSystemUser(e107::getUser()->getSessionDataAs(), false);
$lanVars = array ('x' => ($asuser->getId() ? $asuser->getName().' ('.$asuser->getValue('email').')' : 'unknown')) ;
- e107::getMessage()->addInfo($tp->lanVars(ADLAN_164, $lanVars).' ['.LAN_LOGOUT.']');
+ e107::getMessage()->addInfo(e107::getParser()->lanVars(ADLAN_164, $lanVars).' ['.LAN_LOGOUT.']');
}
// NEW, legacy 3rd party code fix, header called inside the footer o.O
@@ -133,7 +133,7 @@ else
else
{
e107::coreLan('log_messages', true);
- e107::getLog()->addEvent(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".$tp->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING);
+ e107::getLog()->addEvent(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".e107::getParser()->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING);
e107::getRedirect()->redirect('admin.php?failed');
}
diff --git a/e107_admin/boot.php b/e107_admin/boot.php
index f53bfb4c9..1fb02e2f0 100644
--- a/e107_admin/boot.php
+++ b/e107_admin/boot.php
@@ -107,6 +107,7 @@ if(e_AJAX_REQUEST && ADMIN && varset($_GET['mode']) == 'core' && ($_GET['type']
$text = '
';
$count = 1;
+ $tp = e107::getParser();
foreach($rows['channel']['item'] as $row)
{
if($count > $limit){ break; }
diff --git a/e107_admin/db.php b/e107_admin/db.php
index c2c72edd3..4e1c5e5d3 100644
--- a/e107_admin/db.php
+++ b/e107_admin/db.php
@@ -929,6 +929,8 @@ class system_tools
$mes = e107::getMessage();
$sql = e107::getDb('utf8-convert');
+
+ $qry = [];
if($sql->gen($query))
{
diff --git a/e107_admin/users_extended.php b/e107_admin/users_extended.php
index c8c108d80..65ac57851 100755
--- a/e107_admin/users_extended.php
+++ b/e107_admin/users_extended.php
@@ -39,13 +39,13 @@ if(varset($_GET['mode']) == "ajax")
{
$tmp = explode(".", e_QUERY);
$action = $tp->filter($tmp[0]);
- $sub_action = varset($tmp[1], '');
+ $sub_action = varset($tmp[1]);
$sub_action = $tp->filter($sub_action);
$id = varset($tmp[2], 0);
unset($tmp);
}
- if($sql->select('user_extended_struct', '*', "user_extended_struct_id = '{$sub_action}'"))
+ if($sql->select('user_extended_struct', '*', "user_extended_struct_id = '$sub_action'"))
{
$current = $sql->fetch();
}
@@ -68,7 +68,7 @@ if(varset($_GET['mode']) == "ajax")
foreach($result as $row2)
{
$fld = $row2;
- $selected = (varset($_POST['table_db'], '') == $fld || $curVals[0] == $fld) ? " selected='selected'" : "";
+ $selected = (varset($_POST['table_db']) == $fld || $curVals[0] == $fld) ? " selected='selected'" : "";
$text .= "
\n";
}
$text .= "";
@@ -79,8 +79,8 @@ if(varset($_GET['mode']) == "ajax")
$text .= "
" . EXTLAN_63 . " | ";
$text .= " | ";
$text .= " | ";
$text .= " |
- \n\n";
+ ";
return $text;
}
@@ -400,7 +400,7 @@ class bbcode_shortcodes extends e_shortcode
$value2 = substr($value, 0, strpos($value, " "));
$value = ($value2 ? $value2 : $value);
$value = ($value == '&|') ? ':((' : $value;
- $text .= "\n
-
+
{LAN=PREVIOUS}
-
+
{LAN=NEXT}
diff --git a/e107_plugins/newsletter/admin_config.php b/e107_plugins/newsletter/admin_config.php
index 4d3892ba9..427490e5d 100644
--- a/e107_plugins/newsletter/admin_config.php
+++ b/e107_plugins/newsletter/admin_config.php
@@ -644,7 +644,7 @@ class newsletter
if($nl_row = $nl_sql->fetch())
{
$subscribers_list = explode(chr(1), trim($nl_row['newsletter_subscribers']));
- sort($subscriber_list);
+ sort($subscribers_list);
$subscribers_total_count = count($subscribers_list) - 1; // Get a null entry as well
}
if ($subscribers_total_count<1)
diff --git a/e107_plugins/rss_menu/admin_prefs.php b/e107_plugins/rss_menu/admin_prefs.php
index ed8078f6a..08ec2e6fd 100644
--- a/e107_plugins/rss_menu/admin_prefs.php
+++ b/e107_plugins/rss_menu/admin_prefs.php
@@ -266,7 +266,7 @@ class rss_ui extends e_admin_ui
if(!$render)
{
- $this->show_message(RSS_LAN_ADMIN_11, RSS_LAN_ERROR_6);
+ e107::getMessage()->addWarning(RSS_LAN_ERROR_6);
}
else
{