[Mapbender-commits] r2375 - branches/2.5/http/sld/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 10 19:01:36 EDT 2008


Author: mschulz
Date: 2008-04-10 19:01:35 -0400 (Thu, 10 Apr 2008)
New Revision: 2375

Modified:
   branches/2.5/http/sld/classes/StyledLayerDescriptor.php
Log:
only autoload classes from sld classes dir

Modified: branches/2.5/http/sld/classes/StyledLayerDescriptor.php
===================================================================
--- branches/2.5/http/sld/classes/StyledLayerDescriptor.php	2008-04-10 23:00:35 UTC (rev 2374)
+++ branches/2.5/http/sld/classes/StyledLayerDescriptor.php	2008-04-10 23:01:35 UTC (rev 2375)
@@ -206,6 +206,7 @@
  * @param string $class_name
  */
 function __autoload($class_name) {
-    require_once $class_name . '.php';
+	if (file_exists(dirname(__FILE__). "/{$class_name}.php"))
+    	require_once $class_name . '.php';
 }
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list