From: SourceForge.net <no...@so...> - 2012-08-13 10:27:34
|
Bugs item #3556902, was opened at 2012-08-13 03:26 Message generated for change (Comment added) made by irmtfan You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=3556902&group_id=41586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core - Core Group: XOOPS 2.5.x Status: Open Resolution: None >Priority: 9 Private: No Submitted By: irmtfan (irmtfan) Assigned to: Nobody/Anonymous (nobody) Summary: xoops_getConfigOption('language') is wrongly return Initial Comment: in latest xoops 2.5.5 and all previous versions xoops_getConfigOption('language') is not equal to $GLOBALS['xoopsConfig']['language'] I temporary solve it like this: in include/functions.php around line 926: change the xoops_getConfigOption function like this: [code] function xoops_getConfigOption($option, $type = 'XOOPS_CONF') { static $coreOptions = array(); if (is_array($coreOptions) && array_key_exists($option, $coreOptions)) { return $coreOptions[$option]; } // START hacked by irmtfan to solve language issue if ( $option == 'language') { return $GLOBALS['xoopsConfig'][$option]; } // END hacked by irmtfan to solve language issue $ret = false; $config_handler =& xoops_gethandler('config'); $configs = $config_handler->getConfigsByCat((is_array($type)) ? $type : constant($type)); if ($configs) { if (isset($configs[$option])) { $ret = $configs[$option]; } } $coreOptions[$option] = $ret; return $ret; } [/code] ---------------------------------------------------------------------- >Comment By: irmtfan (irmtfan) Date: 2012-08-13 03:27 Message: i change the priority to the highest. Now xoops header is not changed with Xlanguage and EMLH ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=3556902&group_id=41586 |