We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6919646 commit 1a8c65aCopy full SHA for 1a8c65a
app/models/wiki_content_version.rb
@@ -47,13 +47,13 @@ class WikiContentVersion < ActiveRecord::Base
47
def text=(plain)
48
case Setting.wiki_compression
49
when 'gzip'
50
- begin
51
- self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
52
- self.compression = 'gzip'
53
- rescue
54
- self.data = plain
55
- self.compression = ''
56
- end
+ begin
+ self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
+ self.compression = 'gzip'
+ rescue
+ self.data = plain
+ self.compression = ''
+ end
57
else
58
self.data = plain
59
self.compression = ''
0 commit comments