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

Sitemap Plugin: updates

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

View File

@@ -170,7 +170,7 @@
if (count(Plugin::$components) > 0) { if (count(Plugin::$components) > 0) {
foreach (Plugin::$components as $component) { foreach (Plugin::$components as $component) {
if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = $component; if ( ! in_array($component, Sitemap::$forbidden_components)) $components[] = Text::lowercase($component);
} }
} }

View File

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