mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
fix source indent of app/models/wiki_content_version.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20038 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
691964695f
commit
1a8c65a79f
@ -47,13 +47,13 @@ class WikiContentVersion < ActiveRecord::Base
|
||||
def text=(plain)
|
||||
case Setting.wiki_compression
|
||||
when 'gzip'
|
||||
begin
|
||||
self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
|
||||
self.compression = 'gzip'
|
||||
rescue
|
||||
self.data = plain
|
||||
self.compression = ''
|
||||
end
|
||||
begin
|
||||
self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
|
||||
self.compression = 'gzip'
|
||||
rescue
|
||||
self.data = plain
|
||||
self.compression = ''
|
||||
end
|
||||
else
|
||||
self.data = plain
|
||||
self.compression = ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user