mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-30 06:55:16 -04:00
Fixes include problems as well as Win path problems.
This commit is contained in:
parent
d72ea22fb0
commit
9f10e92175
13 changed files with 158 additions and 70 deletions
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
class Crumb {
|
||||
|
||||
private $h5ai, $parts;
|
||||
|
||||
|
||||
public function __construct($h5ai) {
|
||||
|
||||
$this->h5ai = $h5ai;
|
||||
|
@ -11,13 +13,14 @@ class Crumb {
|
|||
$href = $h5ai->getAbsHref();
|
||||
while ($href !== "/" && $href !== "//") {
|
||||
$this->parts[] = $href;
|
||||
$href = dirname($href) . "/";
|
||||
$href = safe_dirname($href, true);
|
||||
}
|
||||
$this->parts[] = "/";
|
||||
|
||||
$this->parts = array_reverse($this->parts);
|
||||
}
|
||||
|
||||
|
||||
public function toHtml() {
|
||||
|
||||
$html = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue