Skip to content

Commit

Permalink
No need to reverse the parents array
Browse files Browse the repository at this point in the history
  • Loading branch information
kolber committed Apr 5, 2013
1 parent 3ebb358 commit d656b46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/page-data.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ static function get_parents($file_path, $url) {
array_pop($split_path);
$parents[] = implode('/', $split_path);
}
# reverse array to emulate anchestor structure
$parents = array_reverse($parents);

return (count($parents) < 1) ? array() : $parents;
}
Expand Down

0 comments on commit d656b46

Please sign in to comment.