From db722a2ebd868fb61b996be3564e6ee6ba119867 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Thu, 13 Jul 2006 21:44:04 +0000 Subject: [PATCH] __usens is a bad idea. think again git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@467 839d8a87-29fc-0310-9880-83ba4fa771e5 --- classes/Platal.php | 15 --------------- 1 file changed, 15 deletions(-) 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; } -- 2.1.4