Commit d09d793e authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4994 (Wiki pages are not showing on the XML Sitemap)

parent 99ab195f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@ function wiki_add_page($title, $description, $notes, $hide_posts, $member = null
    }

    require_code('sitemap_xml');
    notify_sitemap_node_add('_SEARCH:wiki:browse:' . strval($page_id), null, $edit_date, ($page_id == db_get_first_id()) ? SITEMAP_IMPORTANCE_HIGH : SITEMAP_IMPORTANCE_MEDIUM, 'weekly', has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(), 'wiki', strval($page_id)));
    notify_sitemap_node_add('_SEARCH:wiki:browse:' . strval($page_id), null, $edit_date, ($page_id == db_get_first_id()) ? SITEMAP_IMPORTANCE_HIGH : SITEMAP_IMPORTANCE_MEDIUM, 'weekly', has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(), 'wiki_page', strval($page_id)));

    return $page_id;
}
@@ -544,7 +544,7 @@ function wiki_edit_page($page_id, $title, $description, $notes, $hide_posts, $me
    }

    require_code('sitemap_xml');
    notify_sitemap_node_edit('_SEARCH:wiki:browse:' . strval($page_id), has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(), 'wiki', strval($page_id)));
    notify_sitemap_node_edit('_SEARCH:wiki:browse:' . strval($page_id), has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(), 'wiki_page', strval($page_id)));
}

/**