Fixes include problems as well as Win path problems.

This commit is contained in:
Lars Jung 2012-02-15 18:41:13 +01:00
parent d72ea22fb0
commit 9f10e92175
13 changed files with 158 additions and 70 deletions

View file

@ -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 = "";