[Chameleon-dev] [Bug 937] [Chameleon - Core] absolute skin paths not working

bugzilla-daemon at maptools.org bugzilla-daemon at maptools.org
Tue Jan 25 08:35:53 EST 2005


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

pspencer at dmsolutions.ca changed:

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



------- Additional Comments From pspencer at dmsolutions.ca  2005-01-25 08:35 -------
final fix was:

/* case 1 - skin search path relative to app */
        foreach( array_reverse($this->maszSkinSearchPath) as $szPath )
        {
            //echo "searching registered skin path $szPath<BR>\n";
            if ($this->isAbsolutePath($szPath))
            {
                $szTempPath = $this->resolvePath2( $szFilePath, $szPath );
            }
            else 
            {
                $szTempPath = $this->resolvePath2( $szFilePath,
$_SESSION['gszAppPath'].'/'.$szPath."/" );
            }
            //echo "resolved search path to $szTempPath<BR>\n";
            clearstatcache();
            if ($szTempPath != "" && file_exists($szTempPath))
            {
                //echo "found in registered skin: $szTempPath<BR>\n";
                return $szTempPath;
            }
        }

to findFile in chameleon.php.  Fix committed to cvs in 2.1 and 2.0 branch



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list