Skip to content
Browse files

Follow-on to 5fca371 for #1945.

Previously skipped admin_watermarks mods to use new functionality of #1945
since there was concurrent work on it with #1970.
Now that both are done, we can wrap this up.
  • Loading branch information...
1 parent e17c393 commit 8384d7948e257c9bc825c2d45da9630d00c603f0 @shadlaws shadlaws committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/watermark/controllers/admin_watermarks.php
View
2 modules/watermark/controllers/admin_watermarks.php
@@ -104,7 +104,7 @@ public function add() {
list ($width, $height, $mime_type, $extension) = photo::get_file_metadata($file);
if (!$width || !$height || !$mime_type || !$extension ||
- !in_array($extension, legal_file::get_photo_extensions())) {
+ !legal_file::get_photo_extensions($extension)) {
message::error(t("Invalid or unidentifiable image file"));
@unlink($file);
return;

0 comments on commit 8384d79

Please sign in to comment.
Something went wrong with that request. Please try again.