diff --git a/include/class.file.php b/include/class.file.php index 78cbed9c8e9d634cf828a34d5ab28c532804c3fb..5f4013ff762f85b780c61bc746d84190deba714b 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -437,6 +437,10 @@ class AttachmentFile extends VerySimpleModel { return $f; } + static function __create($file, &$errors) { + return static::create($file); + } + /** * Migrate this file from the current backend to the backend specified. * diff --git a/include/class.i18n.php b/include/class.i18n.php index 27486ba9b3db761ba91752cac6436f589094a690..566cf69456ff2359b79bfd18114b75543e108eb9 100644 --- a/include/class.i18n.php +++ b/include/class.i18n.php @@ -66,7 +66,7 @@ class Internationalization { 'role.yaml' => 'Role::__create', // Note that group requires department 'group.yaml' => 'Group::__create', - 'file.yaml' => 'AttachmentFile::create', + 'file.yaml' => 'AttachmentFile::__create', 'sequence.yaml' => 'Sequence::__create', ); diff --git a/include/i18n/en_US/file.yaml b/include/i18n/en_US/file.yaml index 0464b6a23d6f2e600b2242880089133d65fdc214..d77bcd3e9da33e29462550b07c4c2efabca5f4c4 100644 --- a/include/i18n/en_US/file.yaml +++ b/include/i18n/en_US/file.yaml @@ -3,7 +3,7 @@ # # Files initially inserted into the system. Canned responses have their own # method for attachments; however, this file will make it easier to add -# thinkgs like inline images. +# things like inline images. # # NOTE: If the files aren't attached to something by the installer, they # bill be cleaned up shortly after installation (by the autocron).