[Chameleon-dev] [Bug 2096] [Chameleon-widget]"MapServer Template" string have to be in query template for the MapTips widget
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Mon Sep 21 09:02:54 EST 2009
http://bugzilla.maptools.org/show_bug.cgi?id=2096
--- Comment #4 from Normand Savard <nsavard at mapgears.com> 2009-09-21 14:02:52 ---
Why not use ms_GetVersionInt() instead of parsing the version string?
I used the doc found here and didn't know this function:
http://www.maptools.org/php_mapscript/index.phtml?page=phpmapscript-class-guide.html
Daniel you're right, the "if" should be:
if(($nVersion >= 0x41004) || ($nVersion >= 0x50202))
and:
$nVersion = intval($aszDigits[0], 8)*0x010000;
$nVersion += intval($aszDigits[1],8)*0x0100;
need to be:
$nVersion = intval($aszDigits[0], 16)*0x010000;
$nVersion += intval($aszDigits[1],16)*0x0100;
but I chose the simpler:
fwrite( $hTemplate, "<!-- MapServer Template -->\n".$szTemplate );
--
Configure bugmail: http://bugzilla.maptools.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Chameleon-dev
mailing list