[Chameleon-dev] [Bug 607] [Chameleon] LegendTemplate not found
problem
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Sat Jul 31 17:28:00 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=607
------- Additional Comments From jmckenna at dmsolutions.ca 2004-07-31 17:27 -------
I did some (lol, quite a lot) digging and it seems this issue is common...in
fact paul mentioned a fix in the code to a user:
http://lists.maptools.org/pipermail/chameleon/2004-January/000369.html
As Paul suggested, in legendtemplate.widget.php I changed lines 95 to 99 to:
if (strcmp(substr($this->mszTemplate, 0, 1), "/") != 0 &&
strcmp(substr($this->mszTemplate, 1, 1), ":") != 0 &&
strcmp(substr($this->mszTemplate, 0, 1), "\\") != 0 &&
strcasecmp(substr($this->mszTemplate, 0, 7), "http://") != 0)
{
Paul was right, the previous code was incorrect. But that didn't solve the
problem. There is another problem, on line 102 with the realpath() php function
(it always fails):
$this->mszTemplate =
realpath($szTemplatePath."/".$this->mszTemplate);
Removing the realpath() function allows me to specify a http:// path to the
legend template correctly, and allows me to specify a relative path (as long as
it is relative to the template AND visible by the web browser). Can we live with
this? Is there another option to realpath() ?????
I can commit my 'fix', please let me know if i should or not.
------- 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