From: x2000habouzit Date: Sun, 30 Jul 2006 12:59:27 +0000 (+0000) Subject: empty path are not wiki ... X-Git-Tag: xorg/0.9.11~191 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b647fb5f418ad35f233b8391227a45e549d756e8;p=platal.git empty path are not wiki ... git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@723 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs.net/index.php b/htdocs.net/index.php index 1c07de0..fd4c3a8 100644 --- a/htdocs.net/index.php +++ b/htdocs.net/index.php @@ -26,8 +26,7 @@ require 'xnet.inc.php'; require_once dirname(__FILE__).'/../classes/Xnet.php'; require_once dirname(__FILE__).'/../classes/PLModule.php'; -if (($path = Env::v('n')) && substr($path, 0, 4) != 'Xnet') { - +if (!($path = Env::v('n')) || substr($path, 0, 4) != 'Xnet') { $platal = new Xnet('xnet', 'xnetgrp', 'xnetlists', 'xnetevents', 'geoloc'); $platal->run(); diff --git a/htdocs/index.php b/htdocs/index.php index a81494d..b372e97 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -26,7 +26,7 @@ require_once 'xorg.inc.php'; require_once dirname(__FILE__).'/../classes/Platal.php'; require_once dirname(__FILE__).'/../classes/PLModule.php'; -if (($path = Env::v('n')) && ($path{0} < 'A' || $path{0} > 'Z')) { +if (!($path = Env::v('n')) || ($path{0} < 'A' || $path{0} > 'Z')) { $platal = new Platal('auth', 'banana', 'carnet', 'email', 'events', 'geoloc', 'lists', 'marketing', 'payment', 'platal',