Fix for relative paths

This commit is contained in:
=
2012-06-02 21:44:44 +02:00
parent 37a1ac2e19
commit b892415ca3
@@ -59,7 +59,7 @@ class Tag implements \Reflector
$tag_name = str_replace( $tag_name = str_replace(
' ', '', ucwords(str_replace('-', ' ', $matches[1])) ' ', '', ucwords(str_replace('-', ' ', $matches[1]))
).'Tag'; ).'Tag';
$class_name = '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\' . $tag_name; $class_name = 'phpDocumentor\\Reflection\\DocBlock\\Tag\\' . $tag_name;
return (@class_exists($class_name)) return (@class_exists($class_name))
? new $class_name($matches[1], isset($matches[2]) ? $matches[2] : '') ? new $class_name($matches[1], isset($matches[2]) ? $matches[2] : '')