Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Mar 11, 2018
1 parent 44c99f9 commit 1c9938e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions AllowedUploadsPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function checkUpload($hookName, $params) {
$userVars = $request->getUserVars();
$fileName = $userVars['name'];
$extension = array_pop(explode('.',$fileName));

$allowedExtensions = $this->getSetting($context->getId(), 'allowedExtensions');

if ($allowedExtensions){
Expand All @@ -133,7 +133,5 @@ function checkUpload($hookName, $params) {
return false;
}


}

?>
2 changes: 1 addition & 1 deletion locale/en_US/locale.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<locale name="en_US" full_name="U.S. English">
<message key="plugins.generic.allowedUploads.displayName">Allowed Uploads Plugin</message>
<message key="plugins.generic.allowedUploads.description">Allowed Uploads plugin enables journal to choose the filetypes that are allowed. NOTE! This is not a security plugin! Please make sure that the files directory is outside the web root.</message>
<message key="plugins.generic.allowedUploads.description">Allowed Uploads plugin enables to choose the filetypes that are allowed when submitting a manuscript. NOTE! This is not a security plugin! Please make sure that the files directory is outside the web root.</message>
<message key="plugins.generic.allowedUploads.error">Only the following file extensions are allowed: {$allowedExtensions}.</message>
<message key="plugins.generic.allowedUploads.manager.settings.description">Add a semicolon separated list of allowed file extensions. For example doc; docx; pdf; gif; jpg and click OK.</message>
<message key="plugins.generic.allowedUploads.manager.settings.allowedExtensions">Allowed file extensions</message>
Expand Down

0 comments on commit 1c9938e

Please sign in to comment.