From: x2000habouzit Date: Thu, 13 Jul 2006 21:44:04 +0000 (+0000) Subject: __usens is a bad idea. X-Git-Tag: xorg/0.9.11~433 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=db722a2ebd868fb61b996be3564e6ee6ba119867;p=platal.git __usens is a bad idea. think again git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@467 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/classes/Platal.php b/classes/Platal.php index 1594acd..098c0d8 100644 --- a/classes/Platal.php +++ b/classes/Platal.php @@ -28,7 +28,6 @@ class Platal { var $__mods; var $__hooks; - var $__usens; var $ns; var $path; @@ -41,8 +40,6 @@ class Platal $this->__mods = array(); $this->__hooks = array(); - $this->__usens = false; - $this->ns = ''; array_unshift($modules, 'core'); foreach ($modules as $module) { @@ -51,11 +48,6 @@ class Platal } } - function use_namespace() - { - $this->__usens = true; - } - function find_hook() { $p = $this->path; @@ -88,13 +80,6 @@ class Platal $hook = $this->find_hook(); if (is_null($hook)) { - if ($this->__usens) { - $i = strpos($this->path, '/'); - if ($i) { - $this->ns = $this->path; - $this->path = 'index'; - } - } return PL_NOT_FOUND; }