mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-30 15:05:15 -04:00
Make fallback as simple and fast as possible.
This commit is contained in:
parent
844b37d165
commit
6eae9a7114
2 changed files with 3 additions and 6 deletions
|
@ -182,10 +182,7 @@ class App {
|
|||
}
|
||||
|
||||
foreach ($items as $item) {
|
||||
$type = "file";
|
||||
if ($item->is_folder) {
|
||||
$type = $this->is_managed_url($item->url) ? "folder" : "folder-page";
|
||||
}
|
||||
$type = $item->is_folder ? "folder" : "file";
|
||||
|
||||
$html .= "<tr>";
|
||||
$html .= "<td class='fb-i'><img src='" . APP_URL . "client/images/fallback/" . $type . ".png' alt='" . $type . "'/></td>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue