mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-01 15:58:19 -04:00
More refactorings.
This commit is contained in:
parent
b8b6d32a33
commit
318fefbbfd
4 changed files with 127 additions and 141 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue