]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
syntax error
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 25 Feb 2016 21:17:44 +0000 (22:17 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 25 Feb 2016 21:17:44 +0000 (22:17 +0100)
classes/File.php

index 2115313a81ce5bf7ec43d89abf7b055fdad5cec2..171ba9942bb4ade5285394fc80dc1d3c64711c22 100644 (file)
@@ -286,7 +286,7 @@ class File extends Managed_DataObject
                 if (array_key_exists($ext, $blacklist)) {
                     if (!is_string($blacklist[$ext])) {
                         // we don't have a safe replacement extension
-                        throw ClientException(_('Blacklisted file extension.'));
+                        throw new ClientException(_('Blacklisted file extension.'));
                     }
                     common_debug('Found replaced extension for filename '._ve($filename).': '._ve($ext));