FIX: Wizard tries harder to find existing Welcome Topic

The wizard searches for:

* a topic that with the "is_welcome_topic" custom field
* a topic with the correct slug for the current default locale
* a topic with the correct slug for the English locale
* the oldest globally pinned topic

It gives up if it didn't find any of the above.
This commit is contained in:
Gerhard Schlager
2018-12-05 18:05:37 +01:00
parent 6cf2e64e44
commit 43cfdb1cb9
6 changed files with 95 additions and 15 deletions

View File

@@ -4049,10 +4049,10 @@ en:
introduction:
title: "Introduction"
disabled: "<p>We couldnt find any topic with the title “Welcome to Discourse”.</p>
disabled: "<p>We couldnt find any topic with the title “%{topic_title}”.</p>
<ul>
<li>If you have changed the title, edit that topic to modify your sites introductory text.</li>
<li>If you have deleted this topic, create another topic with “Welcome to Discourse” as the title. The content of the first post is your sites introductory text.</li>
<li>If you have deleted this topic, create another topic with “%{topic_title}” as the title. The content of the first post is your sites introductory text.</li>
</ul>"
fields: