Switches to a 3-state geocoding: the user can choose to keep the geocoded properties...
[platal.git] / classes / platalglobals.php.in
index 409b68c..cc95b1b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -38,6 +38,13 @@ class PlatalGlobals extends PlGlobals
     public function __construct()
     {
         parent::__construct(array('platal.ini', 'platal.conf'));
+        if (isset($GLOBALS['IS_XNET_SITE'])) {
+            $this->core->sitename = 'Polytechnique.net';
+        }
+    }
+
+    public function init()
+    {
         $this->bootstrap(array('NbIns'), array($this, 'updateNbIns'));
         $this->bootstrap(array('NbValid'), array($this, 'updateNbValid'));
     }