FIX: too_few_topics_notice check and message should use basic_requires_read_posts site setting

This commit is contained in:
Neil Lalonde
2014-07-25 15:58:16 -04:00
parent 4101a396ad
commit 46bdd13491
3 changed files with 6 additions and 4 deletions

View File

@ -152,8 +152,8 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
post_count += c.get('post_count');
}
});
if (topic_count < 5 || post_count < 50) {
notices.push(I18n.t("too_few_topics_notice"));
if (topic_count < 5 || post_count < Discourse.SiteSettings.basic_requires_read_posts) {
notices.push(I18n.t("too_few_topics_notice", {posts: Discourse.SiteSettings.basic_requires_read_posts}));
}
}