summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib/actions/files.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin_audit/lib/actions/files.php')
-rw-r--r--apps/admin_audit/lib/actions/files.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/actions/files.php b/apps/admin_audit/lib/actions/files.php
index d7b35aa2d3e..d0a030d892a 100644
--- a/apps/admin_audit/lib/actions/files.php
+++ b/apps/admin_audit/lib/actions/files.php
@@ -134,4 +134,23 @@ class Files extends Action {
]
);
}
+
+ /**
+ * Logs preview access to a file
+ *
+ * @param array $params
+ */
+ public function preview(array $params) {
+ $this->log(
+ 'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")',
+ $params,
+ [
+ 'path',
+ 'width',
+ 'height',
+ 'crop',
+ 'mode'
+ ]
+ );
+ }
}