mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01: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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user