Lighter query to get the number of events displaid on every single page of
[platal.git] / classes / platal.php
index 24a0066..7524b21 100644 (file)
@@ -51,6 +51,11 @@ class Platal
             $this->__mods[$module] = $m = PLModule::factory($module);
             $this->__hooks += $m->handlers();
         }
+
+        global $globals;
+        if ($globals->mode == '') {
+            pl_redirect('index.html');
+        }
     }
 
     public function pl_self($n = null)