This commit is contained in:
BoHung Chiu 2022-10-04 18:43:24 +08:00
parent c30bda01d2
commit 750b371737
2 changed files with 4 additions and 4 deletions

View File

@ -52,9 +52,9 @@ class Admin::GalleriesController < OrbitAdminController
text = album.tags.collect do |tag|
"<li class=\"label\"> #{tag.name}</li>"
end.join
render :text => text
render :plain => text
else
render :text => ''
render :plain => ''
end
end
def rotate_images
@ -261,7 +261,7 @@ class Admin::GalleriesController < OrbitAdminController
variable.progress_filename = ''
variable.notalive = true
variable.save!
render :text => ''
render :plain => ''
end
def recreate_progress
progress_percent = AlbumVariable.first.progress_percent rescue '0%'

View File

@ -54,7 +54,7 @@ class Album
(tmp.blank? ? (AlbumSetting.first.resize_gravity.blank? ? "Center" : AlbumSetting.first.resize_gravity) : tmp) rescue 'Center'
end
def self.find_by_param(input)
self.find_by(uid: input)
self.find_by(uid: input.to_s)
end
def self.filter_by_tags(tags=[])
tags = OrbitHelper.page_tags if tags.blank?