[geeklog-cvs] geeklog: Don't include Links in the sitemap automatically as it ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 17 11:35:14 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/94cf2d15c705
changeset: 7031:94cf2d15c705
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun May 17 13:18:39 2009 +0200
description:
Don't include Links in the sitemap automatically as it should not point to redirecting URLs

diffstat:

4 files changed, 6 insertions(+), 7 deletions(-)
plugins/xmlsitemap/functions.inc        |    4 ++--
plugins/xmlsitemap/install_defaults.php |    4 +---
plugins/xmlsitemap/xmlsitemap.class.php |    2 +-
public_html/docs/history                |    3 ++-

diffs (72 lines):

diff -r 14e4943af5e4 -r 94cf2d15c705 plugins/xmlsitemap/functions.inc
--- a/plugins/xmlsitemap/functions.inc	Sun May 17 10:28:44 2009 +0200
+++ b/plugins/xmlsitemap/functions.inc	Sun May 17 13:18:39 2009 +0200
@@ -7,8 +7,8 @@
 // | functions.inc                                                             |
 // |                                                                           |
 // | This file does two things: 1) it implements the necessary Geeklog Plugin  |
-// | API method and 2) implements all the common code needed by the Links      |
-// | Plugins' PHP files.                                                       |
+// | API method and 2) implements all the common code needed by the XMLSitemap |
+// | Plugin's PHP files.                                                       |
 // +---------------------------------------------------------------------------+
 // | Copyright (C) 2009 by the following authors:                              |
 // |                                                                           |
diff -r 14e4943af5e4 -r 94cf2d15c705 plugins/xmlsitemap/install_defaults.php
--- a/plugins/xmlsitemap/install_defaults.php	Sun May 17 10:28:44 2009 +0200
+++ b/plugins/xmlsitemap/install_defaults.php	Sun May 17 13:18:39 2009 +0200
@@ -58,13 +58,12 @@
 $_XMLSMAP_DEFAULT['mobile_sitemap_file'] = 'mobile_sitemap.xml';
 
 // Content types
-$_XMLSMAP_DEFAULT['types'] = array('article', 'staticpages', 'links', 'calendar');
+$_XMLSMAP_DEFAULT['types'] = array('article', 'staticpages', 'calendar');
 
 // Priorities (must be between 0.0 and 1.0; default value is 0.5)
 $_XMLSMAP_DEFAULT['priorities'] = array(
     'article'     => 0.5,
     'staticpages' => 0.5,
-    'links'       => 0.5,
     'calendar'    => 0.5,
 );
 
@@ -73,7 +72,6 @@
 $_XMLSMAP_DEFAULT['frequencies'] = array(
     'article'     => 'daily',
     'staticpages' => 'weekly',
-    'links'       => 'weekly',
     'calendar'    => 'daily',
 );
 
diff -r 14e4943af5e4 -r 94cf2d15c705 plugins/xmlsitemap/xmlsitemap.class.php
--- a/plugins/xmlsitemap/xmlsitemap.class.php	Sun May 17 10:28:44 2009 +0200
+++ b/plugins/xmlsitemap/xmlsitemap.class.php	Sun May 17 13:18:39 2009 +0200
@@ -56,7 +56,7 @@
 *   $sitemap = new SitemapXML();
 *   $sitemap->setFileNames('path_to_sitemap_file',
 *       'path_to_mobile_sitemap_file');
-*   // $sitemap->setTypes(array('article', 'links'));
+*   // $sitemap->setTypes(array('article', 'staticpages'));
 *   // $sitemap->setPriority('article', 0.6);
 *   // $sitemap->setPriority('staticpages', 0.4);
 *   // $sitemap->setChangeFreq('article', 'weekly');
diff -r 14e4943af5e4 -r 94cf2d15c705 public_html/docs/history
--- a/public_html/docs/history	Sun May 17 10:28:44 2009 +0200
+++ b/public_html/docs/history	Sun May 17 13:18:39 2009 +0200
@@ -10,7 +10,7 @@
 + Improved search, by Sami Barakat
 + Comment moderation and editable comments, by Jared Wenerd
 
-Other changes:
+Changes since 1.6.0b1:
 - Users couldn't change their password or delete their account (reported by
   Tom Homer) [Dirk]
 - Fixed plugin postinstall from the install script [Dirk]
@@ -33,6 +33,7 @@
 
 XMLSitemap plugin
 -----------------
+- Don't include Links in the sitemap.xml automatically [Dirk]
 - Fixed "missing argument 2" error when changing config options (reported by
   Markus Wollschläger) [Dirk]
 



More information about the geeklog-cvs mailing list