Overview
SHA1 Hash: | 9812c6c5ab480ecfa65389a6b0c94e9ca51d9ca6 |
---|---|
Date: | 2009-10-15 17:20:00 |
User: | dmitry |
Comment: | Add "Generate RSS feed for timeline" option to Timeline preferences. Don't output RSS when it's turned off. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/rss.c from [945efe289e] to [03cab3dcb1].
@@ -44,10 +44,15 @@ /* ** WEBPAGE: timeline.rss */ void page_timeline_rss(void){ + + // Do not output RSS if it's turned off in Timeline preferences + if (!db_get_boolean("timeline-generate-rss", 1)) + return; + Stmt q; int nLine=0; char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0; Blob bSQL; const char *zType = PD("y","all"); /* Type of events. All if NULL */
Modified src/setup.c from [95f147ca17] to [28796db538].
@@ -783,10 +783,13 @@ entry_attribute("Max timeline comment length", 6, "timeline-max-comment", "tmc", "0"); @ <p>The maximum length of a comment to be displayed in a timeline. @ "0" there is no length limit.</p> + @ <hr> + onoff_attribute("Generate RSS feed for timeline", + "timeline-generate-rss", "tgr", 1); @ <hr> @ <p><input type="submit" name="submit" value="Apply Changes"></p> @ </form> db_end_transaction(0); style_footer();