]> git.sur5r.net Git - contagged/blobdiff - inc/init.php
Use leafletjs + OpenStreetMap instead of google maps
[contagged] / inc / init.php
index 67fbc69be22bac478ddae3ea5396183c5eb40220..51f44be773233ad88a21738feda122c8aa520771 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+  if(defined('E_DEPRECATED')){ // since php 5.3
+    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
+  }else{
+    error_reporting(E_ALL ^ E_NOTICE);
+  }
+
   require_once(dirname(__FILE__).'/config.php');
   require_once(dirname(__FILE__).'/fields.php');
   require_once(dirname(__FILE__).'/lang/en.php');
@@ -41,8 +47,4 @@
   $smarty->use_sub_dirs  = 0;
   $smarty->template_dir  = dirname(__FILE__).'/../templates';
   $smarty->force_compile = $conf['smartycompile'];
-
-  // select the correct google api key
-  $conf['gmapkey'] = $conf['gmaps'][$_SERVER['HTTP_HOST']];
-
 ?>