Skip to content

Commit

Permalink
Update plugin.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nbianca authored Nov 9, 2023
1 parent c4f76ac commit 55114d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module ::DiscoursePostEvent
reloadable_patch do
Category.register_custom_field_type("sort_topics_by_event_start_date", :boolean)
Category.register_custom_field_type("disable_topic_resorting", :boolean)
if defined?(register_preloaded_category_custom_fields)
if respond_to?(:register_preloaded_category_custom_fields)
register_category_list_preloaded_category_custom_fields("sort_topics_by_event_start_date")
register_category_list_preloaded_category_custom_fields("disable_topic_resorting")
else
Expand Down

0 comments on commit 55114d6

Please sign in to comment.