File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11Easy 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
810New in version 1.0.12 - integration with "SEO Meta Tags" module - exclude from sitemap
911any page have "noindex" in meta-tag "robots".
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ package = SEO
44backdrop = 1.x
55type = module
66configure = admin/config/metadata/easy_xmlsitemap
7- version = 1.0.14
7+ version = 1.0.15
88
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments