[Chameleon-dev] [Bug 1331] New: MLT: setLanguage does not set array member

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Mar 8 10:23:04 EST 2006


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

           Summary: MLT: setLanguage does not set array member
           Product: Chameleon
           Version: 2.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


The setLanguage function of the MLTPHPInclude class does not set the
$aszLanguage variable, which is used e.g. in the loadResource function. The code
below is a proposed patch:

    function setLanguage( $szLanguage )
    {
        // bartvde, added
        $aszLanguage = array();
        array_push( $aszLanguage,$szLanguage );

        // set language
        $this->maszLanguage = $aszLanguage;

        // set the current language
        $this->szLanguage =  $szLanguage;
        // end bartvde

    // end setLanguage function
  }



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