More refactorings.

This commit is contained in:
Lars Jung 2012-10-06 22:49:09 +02:00
parent b8b6d32a33
commit 318fefbbfd
4 changed files with 127 additions and 141 deletions

View file

@ -87,9 +87,9 @@ class Entry {
public function get_parent(&$cache) {
$parentAbsPath = normalize_path(dirname($this->abs_path));
if (starts_with($parentAbsPath, $this->app->get_root_abs_path())) {
return Entry::get($this->app, $parentAbsPath, $cache);
$parent_abs_path = normalize_path(dirname($this->abs_path));
if (starts_with($parent_abs_path, $this->app->get_root_abs_path())) {
return Entry::get($this->app, $parent_abs_path, $cache);
}
return null;
}