diff options
author | Simon Rettberg | 2021-04-21 17:10:52 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-21 17:10:52 +0200 |
commit | c84e524d4b658f974aca9f56d7e2307dcb06858e (patch) | |
tree | 9b6d0268f65133731eefa306c99b22f38666329c /modules-available | |
parent | [dozmod] Add checkbox for "allow student download" (diff) | |
download | slx-admin-c84e524d4b658f974aca9f56d7e2307dcb06858e.tar.gz slx-admin-c84e524d4b658f974aca9f56d7e2307dcb06858e.tar.xz slx-admin-c84e524d4b658f974aca9f56d7e2307dcb06858e.zip |
[dozmod] Always render expired/orphaned images template
Now that the orphaned image scan exists, it doesn't make sense to hide
the whole page if there are no expired images, preventing the user from
scanning for orphaned files.
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/dozmod/pages/expiredimages.inc.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/modules-available/dozmod/pages/expiredimages.inc.php b/modules-available/dozmod/pages/expiredimages.inc.php index 3217ae1e..0ecdaa77 100644 --- a/modules-available/dozmod/pages/expiredimages.inc.php +++ b/modules-available/dozmod/pages/expiredimages.inc.php @@ -43,14 +43,9 @@ class SubPage public static function doRender() { $expiredImages = self::loadExpiredImages(); - - if (empty($expiredImages)) { - Message::addSuccess('no-expired-images'); - } else { - $data = ['images' => $expiredImages]; - Permission::addGlobalTags($data['perm'], null, ['expiredimages.delete', 'orphaned.scan']); - Render::addTemplate('images-delete', $data); - } + $data = ['images' => $expiredImages]; + Permission::addGlobalTags($data['perm'], null, ['expiredimages.delete', 'orphaned.scan']); + Render::addTemplate('images-delete', $data); } public static function doAjax() |