diff --git a/e107_admin/admin.php b/e107_admin/admin.php
index 57bf45da0..fd0f8d0b1 100644
--- a/e107_admin/admin.php
+++ b/e107_admin/admin.php
@@ -787,7 +787,7 @@ function render_clean() // still used by classis, tabbed etc.
{
global $td;
$text = "";
- while ($td <= ADLINK_COLS)
+ while ($td <= defset('ADLINK_COLS', 5))
{
$text .= "
$admin_cat = e107::getNav()->adminCats();
- $newarray = e107::getNav()->adminLinks('core');
+$newarray = e107::getNav()->adminLinks('core');
$plugin_array = e107::getNav()->adminLinks('plugin');
foreach ($admin_cat['id'] as $cat_key => $cat_id)
diff --git a/e107_admin/includes/combo.php b/e107_admin/includes/combo.php
index 0bb212cd5..bd80419a2 100644
--- a/e107_admin/includes/combo.php
+++ b/e107_admin/includes/combo.php
@@ -24,6 +24,7 @@ foreach($newarray as $key=>$funcinfo)
$buts .= e107::getNav()->renderAdminButton($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'default');
}
$text .= $buts;
+$td = 0;
while ($td <= 5) {
$text .= "
| ";
$td++;
diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php
index e122b9790..4967e9e49 100644
--- a/e107_core/shortcodes/batch/admin_shortcodes.php
+++ b/e107_core/shortcodes/batch/admin_shortcodes.php
@@ -566,8 +566,11 @@ class admin_shortcodes
function sc_admin_log($parm=null)
{
+ e107::coreLan('log_messages', true);
+
if (getperms('0'))
{
+
if (!function_exists('admin_log'))
{
function admin_log()
@@ -575,7 +578,7 @@ class admin_shortcodes
$sql = e107::getDb();
$ns = e107::getRender();
- $text = E_16_ADMINLOG."
".ADLAN_116."\n";
+ $text = "
\n";
if (e_QUERY == 'logall')
{
$text .= "
";
@@ -586,16 +589,16 @@ class admin_shortcodes
$text .= "
";
$cnt = $sql ->select('admin_log', '*', 'ORDER BY `dblog_datestamp` DESC LIMIT 0,10', 'no_where');
}
- $text .= ($cnt) ? '