diff --git a/e107_plugins/gsitemap/admin_config.php b/e107_plugins/gsitemap/admin_config.php
index 3e4107d98..0dbe12c91 100644
--- a/e107_plugins/gsitemap/admin_config.php
+++ b/e107_plugins/gsitemap/admin_config.php
@@ -164,7 +164,7 @@ class gsitemap
-
+
|
diff --git a/e107_plugins/gsitemap/plugin.xml b/e107_plugins/gsitemap/plugin.xml
index 21a3b67bc..d60388f70 100644
--- a/e107_plugins/gsitemap/plugin.xml
+++ b/e107_plugins/gsitemap/plugin.xml
@@ -4,10 +4,10 @@
Generates a Google Sitemap
Copyright e107 Inc e107.org, Licensed under GPL (http://www.gnu.org/licenses/gpl.txt)
- Configure Sitemap
+ LAN_CONFIGURE
- Sitemap
+ Sitemap
diff --git a/gsitemap.php b/gsitemap.php
index 292a694b6..f9e66c42a 100644
--- a/gsitemap.php
+++ b/gsitemap.php
@@ -21,14 +21,13 @@ if(!plugInstalled('gsitemap'))
exit();
}
-include_lan(e_PLUGIN."gsitemap/languages/gsitemap_".e_LANGUAGE.".php");
+e107::lan('gsitemap');
if(e_QUERY == "show")
{
require_once(HEADERF);
- $sql -> db_Select("gsitemap", "*", "gsitemap_active IN (".USERCLASS_LIST.") ORDER BY gsitemap_order ");
- $nfArray = $sql -> db_getList();
+ $nfArray = $sql ->retrieve("gsitemap", "*", "gsitemap_active IN (".USERCLASS_LIST.") ORDER BY gsitemap_order ",true);
$text = "";
foreach($nfArray as $nfa)
@@ -44,14 +43,14 @@ if(e_QUERY == "show")
exit;
}
-
+header('Content-type: application/xml', TRUE);
$xml = "
";
-$sql -> db_Select("gsitemap", "*", "gsitemap_active IN (".USERCLASS_LIST.") ORDER BY gsitemap_order ");
-$smArray = $sql -> db_getList();
+$smArray = $sql ->retrieve("gsitemap", "*", "gsitemap_active IN (".USERCLASS_LIST.") ORDER BY gsitemap_order ",true);
+
foreach($smArray as $sm)
{
if($sm['gsitemap_url'][0] == '/') $sm['gsitemap_url'] = ltrim($sm['gsitemap_url'], '/');