From: <ir...@us...> - 2013-02-06 01:58:43
|
Revision: 10994 http://sourceforge.net/p/xoops/svn/10994 Author: irmtfan Date: 2013-02-06 01:58:40 +0000 (Wed, 06 Feb 2013) Log Message: ----------- bug fix: undefined forumCookie in footer Modified Paths: -------------- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt XoopsModules/newbb/branches/irmtfan/newbb/footer.php Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-05 23:28:52 UTC (rev 10993) +++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2013-02-06 01:58:40 UTC (rev 10994) @@ -1,3 +1,8 @@ +date 2013-02-06 +=================================== +1- bug fix: Undefined variable: forumCookie revert last change - use global instead of include_once +in newbb/footer.php + date 2013-02-05 =================================== 1- bug fix: when update the type for a specific forum it delete other forum's types too.(important) Modified: XoopsModules/newbb/branches/irmtfan/newbb/footer.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/footer.php 2013-02-05 23:28:52 UTC (rev 10993) +++ XoopsModules/newbb/branches/irmtfan/newbb/footer.php 2013-02-06 01:58:40 UTC (rev 10994) @@ -40,7 +40,7 @@ $xoTheme->addScript($js_rel_path . '/' . $jsfile); } } -include_once dirname(__FILE__) . "/include/vars.php"; // for $forumCookie["prefix"] +global $forumCookie; // for $forumCookie["prefix"] revert last change - use global instead of include_once // add toggle script $toggle_script="var toggle_cookie=\"" . $forumCookie["prefix"] . "G" . "\";"; $xoTheme->addScript( null, array ('type' => 'text/javascript'), $toggle_script); |