0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
Dieser Commit ist enthalten in:
Angus McLeod 2018-05-14 12:11:11 +10:00
Ursprung bb0f3dfb3e
Commit bc5a504dfd
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -162,8 +162,8 @@ en:
return_to_site: "Return to {{siteName}}" return_to_site: "Return to {{siteName}}"
wizard_composer: wizard_composer:
show_preview: "Preview Your Post" show_preview: "Preview Post"
hide_preview: "Hide Preview" hide_preview: "Edit Post"
quote_post_title: "Quote whole post" quote_post_title: "Quote whole post"
bold_label: "B" bold_label: "B"
bold_title: "Strong" bold_title: "Strong"

Datei anzeigen

@ -86,11 +86,13 @@ after_initialize do
module InvitesControllerCustomWizard module InvitesControllerCustomWizard
def path(url) def path(url)
if Wizard.user_requires_completion?(@user) if Wizard.user_requires_completion?(@user)
wizard_path = $redis.get('custom_wizard_redirect') wizard_id = $redis.get('custom_wizard_redirect')
unless url === '/' unless url === '/'
CustomWizard::Wizard.set_redirect(@user, wizard_id, url) CustomWizard::Wizard.set_redirect(@user, wizard_id, url)
end end
url = "/w/#{wizard_path}"
url = "/w/#{wizard_id}"
end end
super(url) super(url)
end end