[geeklog-cvs] geeklog: Removed plugin_getheadercode_xmlsitemap(). A sitemap.xm...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 10 05:23:20 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/e1a38f3e609e
changeset: 7021:e1a38f3e609e
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun May 10 10:13:49 2009 +0200
description:
Removed plugin_getheadercode_xmlsitemap(). A sitemap.xml is not an RSS feed.

diffstat:

1 file changed, 26 deletions(-)
plugins/xmlsitemap/functions.inc |   26 --------------------------

diffs (36 lines):

diff -r 05dd00b63133 -r e1a38f3e609e plugins/xmlsitemap/functions.inc
--- a/plugins/xmlsitemap/functions.inc	Sun May 10 10:09:55 2009 +0200
+++ b/plugins/xmlsitemap/functions.inc	Sun May 10 10:13:49 2009 +0200
@@ -254,32 +254,6 @@
 function plugin_itemsaved_xmlsitemap($id, $type, $old_id)
 {
     XMLSMAP_update($type);
-}
-
-/**
-* Add a meta tag representing the location of a sitemap
-*/
-function plugin_getheadercode_xmlsitemap()
-{
-	global $_CONF, $_XMLSMAP_CONF;
-	
-	$retval = '';
-	
-	if ($_XMLSMAP_CONF['sitemap_file'] != '') {
-		$retval .= '<link rel="alternate" type="application/rss+xml" href="'
-				.  basename($_XMLSMAP_CONF['sitemap_file']) . '"' . XHTML . '>' . LB;
-	}
-	
-	if (! empty($_XMLSMAP_CONF['mobile_sitemap_file'])) {
-		$retval .= '<link rel="alternate" type="application/rss+xml" href="'
-				.  basename($_XMLSMAP_CONF['mobile_sitemap_file']) . '"' . XHTML . '>' . LB;
-	}
-	
-	if ($retval != '') {
-		$retval = LB . $retval;
-	}
-	
-	return $retval;
 }
 
 /**



More information about the geeklog-cvs mailing list