__usens is a bad idea.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Jul 2006 21:44:04 +0000 (21:44 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 13 Jul 2006 21:44:04 +0000 (21:44 +0000)
think again

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@467 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/Platal.php

index 1594acd..098c0d8 100644 (file)
@@ -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;
         }