Skip to content

Commit

Permalink
Temporary fix to address namespace extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis committed Dec 13, 2011
1 parent ddea832 commit 684830b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ function add($class, $short_name = null, $template_spot = null, $template_branch
// Separate out namespace
$class_name=str_replace('/','\\',$class);
list($namespace,$file)=explode('\\',$class_name);

if (!$file && $namespace){
$file = $namespace;
}
// Include class file directly, do not rely on auto-load functionality
if(!class_exists($class_name,false) && isset($this->api->pathfinder) && $this->api->pathfinder){
$file = str_replace('_',DIRECTORY_SEPARATOR,$file).'.php';
Expand Down

0 comments on commit 684830b

Please sign in to comment.