1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 06:06:53 +02:00

Sitemap Plugin: bug with sitemap.xml - fixed

This commit is contained in:
Awilum
2012-11-15 22:45:01 +02:00
parent 3a96d67be3
commit 242964fccc
2 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@
// Add components to sitemap
if (count($components) > 0) {
foreach ($components as $component) {
foreach ($components as $component) {
$map .= "\t".'<url>'."\n\t\t".'<loc>'.Option::get('siteurl').Text::lowercase($component).'</loc>'."\n\t\t".'<lastmod>'.date("Y-m-d", time()).'</lastmod>'."\n\t\t".'<changefreq>weekly</changefreq>'."\n\t\t".'<priority>1.0</priority>'."\n\t".'</url>'."\n";
}
}
@@ -170,7 +170,7 @@
if (count(Plugin::$components) > 0) {
foreach (Plugin::$components as $component) {
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = __(ucfirst($component), $component);
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = $component;
}
}

View File

@@ -18,7 +18,7 @@
if (count($components) > 0) {
if (count($pages_list) == 0) { echo '<ul>'; }
foreach ($components as $component) {
echo '<li><a href="'.Option::get('siteurl').Text::lowercase($component).'" target="_blank">'.__($component).'</a></li>';
echo '<li><a href="'.Option::get('siteurl').Text::lowercase($component).'" target="_blank">'.__(ucfirst($component), $component).'</a></li>';
}
echo '</ul>';