Bug 937 - [Chameleon - Core] absolute skin paths not working
: [Chameleon - Core] absolute skin paths not working
Status: RESOLVED FIXED
: Chameleon
Core
: 2.0
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-01-25 08:16 by
Modified: 2005-01-25 08:35 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-01-25 08:16:51
If you try to move the skin path outside of the application or chameleon
directory by specifying an absolute directory, the files won't be found.
------- Comment #1 From 2005-01-25 08:35:51 -------
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