Commit c63062d7 authored by Liang Ding's avatar Liang Ding

#19 随机、相关文章处理

parent 6d396afb
......@@ -960,6 +960,9 @@ public class ArticleProcessor {
if (!Solos.GEN_STATIC_SITE) {
dataModel.put(Option.ID_C_RANDOM_ARTICLES_DISPLAY_CNT, preference.getInt(Option.ID_C_RANDOM_ARTICLES_DISPLAY_CNT));
dataModel.put(Option.ID_C_RELEVANT_ARTICLES_DISPLAY_CNT, preference.getInt(Option.ID_C_RELEVANT_ARTICLES_DISPLAY_CNT));
} else {
dataModel.put(Option.ID_C_RANDOM_ARTICLES_DISPLAY_CNT, 0);
dataModel.put(Option.ID_C_RELEVANT_ARTICLES_DISPLAY_CNT, 0);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment