sitemap item do not support utf8 for alias
2 posts
• Page 1 of 1
sitemap item do not support utf8 for alias
hi
my language is farsi (iran)
i enabled Unicode Aliases in joomla Global Configuration. now in Sitemaps Manager when i create a site map with farsi alias it do not support it.
Fix:
in file: administrator\components\com_xmap\tables\sitemap.php
search:
and change it to:
and for that xmap be compatible with joomla 3:
in file: administrator\components\com_xmap\tables\sitemap.php
search:
and change it to:
my language is farsi (iran)
i enabled Unicode Aliases in joomla Global Configuration. now in Sitemaps Manager when i create a site map with farsi alias it do not support it.
Fix:
in file: administrator\components\com_xmap\tables\sitemap.php
search:
- Code: Select all
JFilterOutput::stringURLSafe($this->alias);
and change it to:
- Code: Select all
JApplication::stringURLSafe($this->alias);
and for that xmap be compatible with joomla 3:
in file: administrator\components\com_xmap\tables\sitemap.php
search:
- Code: Select all
$datenow->toFormat("%Y-%m-%d-%H-%M-%S");
and change it to:
- Code: Select all
$datenow->format("Y-m-d-H-i-s");
-

mhehm - Senior Boarder

- Posts: 53
- Joined: Sun Jan 20, 2013 1:22 pm
- Location: Iran
Re: sitemap item do not support utf8 for alias
Thanks mhehm,
I have added your fixes:
https://github.com/guilleva/Xmap/commit/b4f223a8aadaf41fa00c2dff1c3b26cd7db88b05
I have added your fixes:
https://github.com/guilleva/Xmap/commit/b4f223a8aadaf41fa00c2dff1c3b26cd7db88b05
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Exabot [Bot] and 4 guests