Skip to content
Snippets Groups Projects
Commit 294c60f8 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #369

parent af97c88b
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ class Admin::Communication::UnsplashController < Admin::Communication::Applicati
else
p = {
query: params[:query],
page: (params[:page] || 1),
per_page: (params[:per_page] || 10),
orientation: (params[:orientation] || 'squarish'),
lang: (params[:lang] || 'en')
page: (params[:page].presence || 1),
per_page: (params[:per_page].presence || 10),
orientation: (params[:orientation].presence || 'squarish'),
lang: (params[:lang].presence || 'en')
}
@search = Unsplash::Search.search "/search/photos", Unsplash::Photo, p
@total = @search.total
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment