Bug 371

Summary: [Chameleon]Broken images in the navigation tools bar
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 1.99   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-05-07 12:38:49
Broken images in the navigation tools bar

The "sample_basic.phtml" template is displayed with broken images in the
navigation tools bar.  The "Zoom In" image location as follow:

http://localhost/var/www/html/nsavard/chameleon_demo/htdocs/skins/sample/
buttons/button_zoomin_3.png"

The URL is incorrect.

For the "sample_basic_buttonizer.phtml" template, the "Zoom In" image location is:

http://localhost/ms_tmp/buttons/43f1fa31f639097918df74b3ffac092f.png

Fedora core 1
Mozilla 1.6
Chameleon 20040506 tarball
------- Comment #1 From 2004-05-13 11:44:22 -------
Template with the same problem:

http://localhost/nsavard/chameleon_demo/htdocs/sample_basic_plainbuttons.phtml
------- Comment #2 From 2004-05-13 17:02:55 -------
Norm, I think this should be fixed now.
------- Comment #3 From 2004-05-21 10:12:14 -------
Set Target Mileston to 1.99 Beta
------- Comment #4 From 2004-05-21 11:15:07 -------
For the record, Paul you modified my "chameleon.php" to solve this problem.  

....

    if (version_compare( phpversion(), "4.3.3" ) < 0 || 
        (isset($_SERVER['REQUEST_URI']) && 
         $_SERVER['REQUEST_URI'] != $_SERVER['SCRIPT_NAME']))
    {
         $GLOBALS['gszAppWebPath'] .= dirname($_SERVER['REQUEST_URI']);
    }
    else
    {
        $GLOBALS['gszAppWebPath'] .= dirname( $_SERVER['SCRIPT_NAME'] )."/";
    }
....
------- Comment #5 From 2004-05-21 11:31:44 -------
ok, I've applied this patch to chameleon.php
------- Comment #6 From 2004-05-26 09:29:49 -------
Verified on Linux.
------- Comment #7 From 2004-05-26 10:00:41 -------
Verified on Windows. Closed.