Package: nanoblogger Version: 3.2.3-1 Severity: minor Tags: patch I was a little surprised today to see links to the "Archive Index" and to "September 2005" but not to previous months. After doing a little debugging I think I found out the reason:
* weblog_links.sh calls 'query_db "$QUERY_MODE"' * $QUERY_MODE expands to 'max' (default in /usr/bin/nb) * in the next step $db_limit expands to $MAX_ENTRIES (from blog.conf) (default in in /usr/bin/nb) * therefore $DB_RESULTS only contains $MAX_ENTRIES entries * if the blog contains already $MAX_ENTRIES entries in the current month the loop_archive call in weblog_links.sh loops only over the current month and there's only an archive link for the current month. My quick fix was to replace 'query_db "$QUERY_MODE"' by 'query_db all' in weblog_links.sh; that might be annoying when the list of months get too long though ... (s. the attached patch). gregor -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.31.20050730 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) -- no debconf information
--- weblog_links.off 2005-06-13 06:13:57.000000000 +0200 +++ weblog_links.sh 2005-09-12 17:17:36.000000000 +0200 @@ -76,3 +76,5 @@ -query_db "$QUERY_MODE" +# query_db "$QUERY_MODE" +#we want archive links for more months ... +query_db all loop_archive "$DB_RESULTS" months make_monthlink |sort $SORT_ARGS > "$BLOG_DIR/$PARTS_DIR/month_links.$NB_FILETYPE"