Martes, 30 Septiembre 2014 06:04
beggarly

sitemap item do not support utf8 for alias

Report Xmap bugs on this forum.

sitemap item do not support utf8 for alias

Postby mhehm » Mon Jan 21, 2013 5:28 am

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:
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");
User avatar
mhehm
Senior Boarder
Senior Boarder
 
Posts: 71
Joined: Sun Jan 20, 2013 1:22 pm
Location: Iran

Re: sitemap item do not support utf8 for alias

Postby guilleva » Mon Jan 21, 2013 12:50 pm

Thanks mhehm,

I have added your fixes:
https://github.com/guilleva/Xmap/commit/b4f223a8aadaf41fa00c2dff1c3b26cd7db88b05
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica


Return to Bugs



Who is online

Users browsing this forum: Bing [Bot] and 1 guest