[Chameleon-dev] [Bug 1329] [Chameleon-Core]Text on some popup
widgets is encoded
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Wed Mar 8 15:30:38 EST 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1329
------- Additional Comments From nsavard at mapgears.com 2006-03-08 15:30 -------
In response to comment #2:
If $_SESSION['aszLang'] is not set throught CWCAddRegionalTemplate() chameleon
method or by other away, I come to a different behaviour than you described.
The popup widgets use the MLT instance created via session.inc.php. If this
session variable is not set the resources are not loaded because the code in the
MLT loadresource() method in the for loop is not executed ( for ( $i=0;
$i<$nCount; $i++ ) ). In fact "$nCount" equal zero because the MLT
$maszLanguage member is empty. The text appears correctly in the popup window
because the default value in the MLT get() method is used.
I suggest to add the following code in the session.inc.php file when the MLT is
created. What do you think Bill?
if( count($_SESSION['aszLang']) )
{
$this->moGlobalMLT = new MLTPHPInclude( $szUniqueFileName,
$_SESSION['aszLang'],
MLT_NOCACHE );
}
else if ( isset( $_SESSION['gszCurrentLanguage']) )
{
$this->moGlobalMLT = new MLTPHPInclude( $szUniqueFileName,
$_SESSION['gszCurrentLanguage'],
MLT_NOCACHE );
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list