[Chameleon-dev] [Bug 607] [Chameleon] LegendTemplate not found
problem
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Tue Aug 3 15:23:28 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=607
fwarnock at dmsolutions.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From fwarnock at dmsolutions.ca 2004-08-03 15:23 -------
final fix is:
if (isset($this->maParams["TEMPLATE"]))
{
$this->mszTemplate = trim($this->maParams["TEMPLATE"]);
if (strtoupper(substr($this->mszTemplate, 0, 7)) == "HTTP://")
{
$aszFile = file($this->mszTemplate);
$szTmpName = tempnam($_SESSION['gszTmpPath'],
"legendtemplate").".html";
$fh = fopen($szTmpName, "w");
$nbLine = count($aszFile);
for($i=0; $i<$nbLine; $i++)
{
fwrite($fh, $aszFile[$i]);
}
fclose($fh);
$this->mszTemplate = $szTmpName;
}
else
{
$oApp= GetChameleonApplication();
$this->mszTemplate = $oApp->resolvePath2( $this->mszTemplate,
$_SESSION['gszAppPath'] );
}
}
------- 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