[Mapbender-commits] r2141 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Feb 22 09:54:50 EST 2008
Author: christoph
Date: 2008-02-22 09:54:49 -0500 (Fri, 22 Feb 2008)
New Revision: 2141
Modified:
branches/2.5/http/javascripts/map.php
Log:
Multiple modules in e_mb_mod possible, comma-separated list
Modified: branches/2.5/http/javascripts/map.php
===================================================================
--- branches/2.5/http/javascripts/map.php 2008-02-22 11:25:05 UTC (rev 2140)
+++ branches/2.5/http/javascripts/map.php 2008-02-22 14:54:49 UTC (rev 2141)
@@ -107,7 +107,10 @@
$cnt = 0;
while($row = db_fetch_array($res)){
if($row["e_mb_mod"] != ""){
- require_once(dirname(__FILE__) . "/../javascripts/" . trim($row["e_mb_mod"]));
+ $moduleArray = explode(",", $row["e_mb_mod"]);
+ for ($i = 0; $i < count($moduleArray); $i++) {
+ require_once(dirname(__FILE__) . "/../javascripts/" . trim($moduleArray[$i]));
+ }
}
$cnt++;
}
More information about the Mapbender_commits
mailing list