You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/12/27 08:53:55 UTC
svn commit: r729615 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c
Author: pquerna
Date: Fri Dec 26 23:53:55 2008
New Revision: 729615
URL: http://svn.apache.org/viewvc?rev=729615&view=rev
Log:
Add link to atom feed at the top of the first partition of the sitemap.
Remove extra logging.
Modified:
httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c?rev=729615&r1=729614&r2=729615&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_sitemap.c Fri Dec 26 23:53:55 2008
@@ -106,18 +106,21 @@
if (r->args) {
p = strstr(r->args, "part=");
if (p) {
- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "mbox: part=%s", p+5);
partition = atoi(p + 5);
}
p = strstr(r->args, "pmax=");
if (p) {
- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "mbox: pmax=%s", p+5);
partmax = atoi(p + 5);
}
}
- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "mbox: partition=%d pmax=%d args=%s", partition, partmax, r->args);
+ if (partition == 0) {
+ ap_rputs("<url>\n", r);
+ ap_rprintf(r, "<loc>%s?format=atom</loc>\n",
+ ap_construct_url(r->pool, r->uri, r));
+ ap_rputs("</url>\n", r);
+ }
fi = (mbox_file_t *) files->elts;
for (i = 0; i < files->nelts; i++) {