diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 4226d35..c5f4d15 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -44,13 +44,13 @@ class GalleriesController < ApplicationController end images = images.collect do |a| { - "link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater", + "link_to_show" => OrbitHelper.widget_more_url + "/-" + a.id.to_s + "?method=theater", "thumb-src" => a.file.thumb.url } end { "images" => images, - "extras" => {"widget-title"=>"Gallery"} + "extras" => {"widget-title"=>"Gallery","more_url" => OrbitHelper.widget_more_url} } end @@ -67,7 +67,4 @@ class GalleriesController < ApplicationController "back_to_albums" => OrbitHelper.url_to_show(album.to_param) } end - - - end \ No newline at end of file