Skip to content

Commit

Permalink
rawurlencode thumbnails URL + fix pluralizer for L5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Mar 21, 2017
1 parent de5c64a commit 0b3dae7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/lang/en/ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'login_submitBtn' => 'Connect',
'login_passwordForgotten' => 'Forgot password?',

'list_title' => '{0} No element.|{1} 1 element|[2,Inf] :count elements',
'list_title' => '{0} No element.|{1} 1 element|[2,*] :count elements',
'list_pagination' => '– page :current of :total',
'list_newBtn' => 'Create new',
'list_reorderBtn' => 'Reorder',
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/fr/ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'login_submitBtn' => 'Connexion',
'login_passwordForgotten' => 'Mot de passe oublié ?',

'list_title' => '{0} Aucun élément.|{1} 1 élément|[2,Inf] :count éléments',
'list_title' => '{0} Aucun élément.|{1} 1 élément|[2,*] :count éléments',
'list_pagination' => '– page :current sur :total',
'list_newBtn' => 'Création',
'list_reorderBtn' => 'Réorganiser',
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/sharp_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ function sharp_thumbnail($source, $w, $h, $params = [], $relativeFolder=null, $i
}

if(config("sharp.thumbnail_in_storage", false)) {
return url(urlencode("storage/$thumbnailPath/".config('sharp.upload_storage_base_path')."/$thumbName"));
return url("storage/$thumbnailPath/".config('sharp.upload_storage_base_path')."/".rawurlencode($thumbName));
}

return url(urlencode("$thumbnailPath/$thumbName"));
return url("$thumbnailPath/".rawurlencode($thumbName));
}

/**
Expand Down

0 comments on commit 0b3dae7

Please sign in to comment.