remove auto create theme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# name: discourse-donations
|
||||
# about: Integrating Discourse with Stripe for donations
|
||||
# version: 1.10.2
|
||||
# version: 1.11.0
|
||||
# url: https://github.com/choiceaustralia/discourse-donations
|
||||
# authors: Rimian Perkins
|
||||
|
||||
@@ -12,12 +12,6 @@ enabled_site_setting :discourse_donations_enabled
|
||||
|
||||
after_initialize do
|
||||
load File.expand_path('../app/jobs/jobs.rb', __FILE__)
|
||||
|
||||
# Must be placed on every page for fraud protection.
|
||||
header_script = '<script src="https://js.stripe.com/v3/"></script>'
|
||||
discourse_donations_theme = Theme.find_or_create_by(name: 'Discourse Donations Header', hidden: false, user_id: -1)
|
||||
discourse_donations_theme.set_field(target: 'common', name: 'head_tag', value: header_script)
|
||||
discourse_donations_theme.save
|
||||
end
|
||||
|
||||
Discourse::Application.routes.prepend do
|
||||
|
||||
Reference in New Issue
Block a user