[Chameleon-dev] [Bug 1356] [JSAPI] No MLT available in UpdateMap.php
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Wed Mar 22 15:03:57 EST 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1356
------- Additional Comments From jlacroix at mapgears.com 2006-03-22 15:03 -------
I propose to add this check in the Widget.php InitDefault function. This way,
the widgets will always have access to the MLT.
if(!isset($this->moMLT))
{
if(isset($this->moApp) && isset($this->moApp->moGlobalMLT))
{
$this->moMLT =& $this->moApp->moGlobalMLT;
}
else if(is_class('MLTPHPIncludeDefault'))
{
$this->moMLT = new MLTPHPIncludeDefault();
}
}
Any objection?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list