FIX: Backwards compatibility for older Discourse versions (#143)
This commit is contained in:
parent
52d4656011
commit
eac6539c46
|
@ -634,7 +634,9 @@ SQL
|
||||||
AND di.period_type = :period_type
|
AND di.period_type = :period_type
|
||||||
AND di.solutions <> x.solutions
|
AND di.solutions <> x.solutions
|
||||||
"
|
"
|
||||||
|
if respond_to?(:add_directory_column)
|
||||||
add_directory_column("solutions", query: query)
|
add_directory_column("solutions", query: query)
|
||||||
|
end
|
||||||
|
|
||||||
add_to_class(:composer_messages_finder, :check_topic_is_solved) do
|
add_to_class(:composer_messages_finder, :check_topic_is_solved) do
|
||||||
return if !SiteSetting.solved_enabled || SiteSetting.disable_solved_education_message
|
return if !SiteSetting.solved_enabled || SiteSetting.disable_solved_education_message
|
||||||
|
|
Loading…
Reference in New Issue