[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
Mon Mar 13 17:09:22 EST 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1329

nsavard at mapgears.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From nsavard at mapgears.com  2006-03-13 17:09 -------
Fixed based on comment #18, modified arrayToFile() method in mlt.php:

Modify:
foreach ( $aszLanguage as $szResourceKey=>$szResource )
{
   // add entry
   $szBuffer .= '$this->aszMLT[\''.$szContextKey.'\'][\''.
              $szLanguageKey.'\'][\''.$szResourceKey.'\'] = \''.
              urlencode( $szResource ).'\';'."\n";                   
}


To:

foreach ( $aszLanguage as $szResourceKey=>$szResource )
{
    // add entry
    $szBuffer .= '$this->aszMLT[\''.$szContextKey.'\'][\''.
            $szLanguageKey.'\'][\''.$szResourceKey.'\'] = \''.
            str_replace( array("\\","'"), 
                         array("\\\\", "\'"), 
                         $szResource ) .'\';'."\n";
        
}
 

Also corrected a missing "/" between the widget name and its directory, in
WidgetManager.php when calling the MLT loadResource() method:

if ( is_object( $this->moMLT ) )
{
    $this->moMLT->loadResource( $oWidget->mszWidgetName,
               str_replace("\\","/",dirname(__FILE__) ).'/widgets/'.
               $oWidget->mszWidgetName );

}



------- 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