Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
VanDerLars committed Feb 20, 2022
1 parent dcf4d83 commit fe2d691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getBreadcrumbs()
if ($par != NULL) {
$ret = $par->getBreadcrumbs();
$dev = '<div class="n2web_breadcrumb_devider"></div>';
$itm = '<div class="n2web_breadcrumb_item"><a href="' . getDomain() . '?path=' . urlencode($this->path) . '&name=' . urlencode($this->fileName) . '&id=' . $this->id . '">' . $this->title . '</a></div>';
$itm = '<div class="n2web_breadcrumb_item"><a href="?path=' . urlencode($this->path) . '&name=' . urlencode($this->fileName) . '&id=' . $this->id . '">' . $this->title . '</a></div>';

if ($this->name == '') {
// prevent a rare problem
Expand Down Expand Up @@ -255,7 +255,7 @@ public function getFileTree()
} else {
$class_has_children = 'no_children';
}
$ret .= '<li class="n2web_file ' . $class_has_children . '" id="' . $child->id . '_file" data-n2webid="' . $child->id . '">' . $div_has_children . '<a href="' . getDomain() . '?path=' . urlencode($child->path) . '&name=' . urlencode($child->fileName) . '&id=' . $child->id . '">' . $child->title . '</a></li>';
$ret .= '<li class="n2web_file ' . $class_has_children . '" id="' . $child->id . '_file" data-n2webid="' . $child->id . '">' . $div_has_children . '<a href="?path=' . urlencode($child->path) . '&name=' . urlencode($child->fileName) . '&id=' . $child->id . '">' . $child->title . '</a></li>';
}
} else {
// directory
Expand Down Expand Up @@ -362,7 +362,7 @@ function sanitizeNotionHtml($html)

$item = new N2webFolderItem($itemPath, $itemName, 1);

$newUrl = getDomain() . '?path=' . urlencode($this->path . '/' . $item->path) . '&name=' . urlencode($item->fileName) . '&id=' . $item->id;
$newUrl = '?path=' . urlencode($this->path . '/' . $item->path) . '&name=' . urlencode($item->fileName) . '&id=' . $item->id;

$newUrl = str_replace('amp%3B', '', $newUrl);
$newUrl = str_replace('%3B', '', $newUrl);
Expand Down
Binary file modified logos.sketch
Binary file not shown.

0 comments on commit fe2d691

Please sign in to comment.