summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-04-21 17:10:52 +0200
committerSimon Rettberg2021-04-21 17:10:52 +0200
commitc84e524d4b658f974aca9f56d7e2307dcb06858e (patch)
tree9b6d0268f65133731eefa306c99b22f38666329c
parent[dozmod] Add checkbox for "allow student download" (diff)
downloadslx-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.
-rw-r--r--modules-available/dozmod/pages/expiredimages.inc.php11
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()