mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 00:35:32 +08:00
requiring is mega expensive, lets not do it every request.
This commit is contained in:
parent
3d7dfd3168
commit
22f8100919
@ -123,7 +123,7 @@ class Topic < ActiveRecord::Base
|
||||
return title unless SiteSetting.title_fancy_entities?
|
||||
|
||||
# We don't always have to require this, if fancy is disabled
|
||||
require 'redcarpet'
|
||||
require 'redcarpet' unless defined? Redcarpet
|
||||
|
||||
Redcarpet::Render::SmartyPants.render(title)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user