Skip to content

Commit

Permalink
fixes file tool visualisation for 'all' & 'linked' mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vendeeglobe committed Feb 14, 2023
1 parent f994206 commit 6f7e285
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/action/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
};

/*
Showing uploaded by {{upload}} files
Showing uploaded files
{{files
[page="PageName" or global=1 or all=1]
[page="PageName" or global=1 or all=1 or linked=1]
[order="ext|name_desc|size|size_desc|time|time_desc"]
[form=1]
[options=1]
Expand Down Expand Up @@ -463,7 +463,7 @@

// display file tools
if ($this->is_admin()
|| (!$global
|| (!($global || $all || $linked)
&& $this->get_page_owner_id($page_id) == $this->get_user_id())
|| $file['user_id'] == $this->get_user_id())
{
Expand All @@ -480,7 +480,7 @@

$tpl->leave(); // n_

unset($link, $desc);
unset($desc, $icons, $link);
}

$tpl->leave(); // r_
Expand Down

0 comments on commit 6f7e285

Please sign in to comment.