diff options
author | Evan Prodromou <evan@status.net> | 2010-04-12 14:32:01 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-28 18:41:28 -0400 |
commit | f3f652e451bceb64d919f3e8a2fcbeeb6c9dd187 (patch) | |
tree | 81642b30016b6c9035e501b211198180e96fb346 | |
parent | 09e5046dd388baf2629aceea66b5101ee4c4fb86 (diff) |
add sitemap statement to robots.txt
-rw-r--r-- | plugins/Sitemap/SitemapPlugin.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php index ed876d94f..6fc702104 100644 --- a/plugins/Sitemap/SitemapPlugin.php +++ b/plugins/Sitemap/SitemapPlugin.php @@ -77,6 +77,23 @@ class SitemapPlugin extends Plugin } /** + * Add sitemap-related information at the end of robots.txt + * + * @param Action $action Action being run + * + * @return boolean hook value. + */ + + function onEndRobotsTxt($action) + { + $url = common_local_url('sitemapindex'); + + print "\nSitemap: $url\n"; + + return true; + } + + /** * Map URLs to actions * * @param Net_URL_Mapper $m path-to-action mapper |