Bugfix
This commit is contained in:
12
index.php
12
index.php
@@ -63,7 +63,7 @@ $ignore_empty_folders = true;
|
|||||||
|
|
||||||
// DISPLAY LINKS TO HTML FILES IN A FLAT LIST
|
// DISPLAY LINKS TO HTML FILES IN A FLAT LIST
|
||||||
$flat_link_list = array();
|
$flat_link_list = array();
|
||||||
$flat_link_list_exclude = array('WTA');
|
function flat_link_list_filter($link) { return substr($link, 0, 3) != 'WTA'; }
|
||||||
|
|
||||||
|
|
||||||
// SET TITLE BASED ON FOLDER NAME, IF NOT SET ABOVE
|
// SET TITLE BASED ON FOLDER NAME, IF NOT SET ABOVE
|
||||||
@@ -322,15 +322,7 @@ function display_flat_link_list() {
|
|||||||
$h .= "<label class=\"drawer-handle\" for=\"drawer-handle\">---</label>";
|
$h .= "<label class=\"drawer-handle\" for=\"drawer-handle\">---</label>";
|
||||||
$h .= "<input type=\"checkbox\" id=\"drawer-handle\">";
|
$h .= "<input type=\"checkbox\" id=\"drawer-handle\">";
|
||||||
$h .= "<div class=\"link-list-container\">";
|
$h .= "<div class=\"link-list-container\">";
|
||||||
foreach($flat_link_list as $link) {
|
foreach(array_filter($flat_link_list, 'flat_link_list_filter') as $link) {
|
||||||
$exclude = false;
|
|
||||||
foreach($flat_link_list_exclude as $exc) {
|
|
||||||
if (str_contains($link, $exc)) {
|
|
||||||
$exclude = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($exclude) continue;
|
|
||||||
$h .= "<div><a href=\"./" . $link . "\">" . $link . "</a>";
|
$h .= "<div><a href=\"./" . $link . "\">" . $link . "</a>";
|
||||||
$h .= "<i class=\"link-time\" title=\"" . date("D. F jS, Y - h:ia", filemtime($link)) . "\">" . unix2ago(filemtime($link)) . "</i>";
|
$h .= "<i class=\"link-time\" title=\"" . date("D. F jS, Y - h:ia", filemtime($link)) . "\">" . unix2ago(filemtime($link)) . "</i>";
|
||||||
$h .= "<form class=\"link-annotation-form\">";
|
$h .= "<form class=\"link-annotation-form\">";
|
||||||
|
|||||||
Reference in New Issue
Block a user