[GRASS-SVN] r31871 - grass-web/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 28 07:29:25 EDT 2008


Author: neteler
Date: 2008-06-28 07:29:25 -0400 (Sat, 28 Jun 2008)
New Revision: 31871

Modified:
   grass-web/trunk/main.inc
Log:
this hopefully helps for http://gulus.usherbrooke.ca/pub/appl/grass/index.php

Modified: grass-web/trunk/main.inc
===================================================================
--- grass-web/trunk/main.inc	2008-06-28 11:18:10 UTC (rev 31870)
+++ grass-web/trunk/main.inc	2008-06-28 11:29:25 UTC (rev 31871)
@@ -59,7 +59,11 @@
 <td>
 <p><small><i>Module of the day:</i>
 <?php
-include("grassmodules.php");
+ if (function_exists('version_compare')) { // some PHP3 madness
+   if (version_compare(phpversion(), "4.0.2" , ">=")) {
+    include("grassmodules.php");
+   }
+ }
 ?>
 </small>
 </td>



More information about the grass-commit mailing list