Skip to content

Commit 7d8ced1

Browse files
committed
v.1.0.15
1 parent d0ce249 commit 7d8ced1

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
Easy XML sitemap
22
================
33

4-
Provides XML sitemap conforming to Google's recommendations and sitemaps.org protocol.
5-
[Google's recommendations](https://support.google.com/webmasters/answer/2620865)
6-
[sitemaps.org protocol](http://www.sitemaps.org/protocol.html)
4+
Provides XML sitemap conforming to Google's recommendations and sitemaps.org protocol.
5+
6+
[Google's recommendations](https://support.google.com/webmasters/answer/2620865)
7+
8+
[sitemaps.org protocol](http://www.sitemaps.org/protocol.html)
79

810
New in version 1.0.12 - integration with "SEO Meta Tags" module - exclude from sitemap
911
any page have "noindex" in meta-tag "robots".

easy_xmlsitemap.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package = SEO
44
backdrop = 1.x
55
type = module
66
configure = admin/config/metadata/easy_xmlsitemap
7-
version = 1.0.14
7+
version = 1.0.15
88

easy_xmlsitemap.module

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,14 @@ function easy_xmlsitemap_build_node_items($base_url) {
226226
$output = '';
227227
$excluded_types = $config->get('excluded_types');
228228
$types = array_values($excluded_types);
229-
229+
230230
foreach (array_keys($types, 0, true) as $key) {
231231
unset($types[$key]);
232232
}
233+
// @todo - fix fake array
234+
if (empty($types)) {
235+
$types = array('nonexistent_type' => 'nonexistent_type');
236+
}
233237

234238
$frontpage_nid = easy_xmlsitemap_get_frontpage_nid();
235239

0 commit comments

Comments
 (0)