summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/TGA.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/TGA.php')
-rw-r--r--lib/private/Preview/TGA.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/Preview/TGA.php b/lib/private/Preview/TGA.php
index cb591be2231..35f000b6bdd 100644
--- a/lib/private/Preview/TGA.php
+++ b/lib/private/Preview/TGA.php
@@ -28,6 +28,13 @@ class TGA extends Bitmap {
* {@inheritDoc}
*/
public function getMimeType(): string {
- return '/image\/t(ar)?ga/';
+ return '/image\/(x-)?t(ar)?ga/';
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getAllowedMimeTypes(): string {
+ return '/image\/(x-)?t(ar)?ga/';
}
}