From 53eb60195e1e1b443f1046dbd294442f6aed3fb2 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 10 Mar 2013 20:59:41 -0700 Subject: [PATCH] Forum update fix --- e107_handlers/sitelinks_class.php | 2 +- e107_plugins/forum/forum_update.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index 0dfcfb68f..2fea744da 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1092,7 +1092,7 @@ class e_navigation $rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : ''); //XXX && !is_numeric($act) ??? - if (($active_page == $act)|| (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act))) + if (($active_page == (string) $act)|| (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act))) { $temp = $tmpl['button_active'.$kpost]; } diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php index d12b42c5a..dbc41cb84 100644 --- a/e107_plugins/forum/forum_update.php +++ b/e107_plugins/forum/forum_update.php @@ -79,6 +79,7 @@ function step1() { global $f; $e107 = e107::getInstance(); + $mes = e107::getMessage(); //Check attachment dir permissions if(!isset($f->updateInfo['skip_attach'])) {