Not used $unicodeslugs from configuration.php

  • Posts: 115
  • Thank you received: 8
13 years 7 months ago #13856

HikaShop not used $unicodeslugs from configuration.php Joomla 1.6
in files:
components\com_hikashop\controllers\product.php
components\com_hikashop\views\category\view.html.php
components\com_hikashop\views\product\view.html.php

this param need for URL in UTF8

example:
// zlenko_
// foreach($rows as $key => $row){
// $ids[]=$row->category_id;
// $rows[$key]->alias = JFilterOutput::stringURLSafe($row->category_name);
// }
if ($app->getCfg('unicodeslugs') == 1) {
foreach($rows as $key => $row){
$ids[]=$row->category_id;
$rows[$key]->alias = JFilterOutput::stringURLUnicodeSlug($row->category_name);
}
}
else {
foreach($rows as $key => $row){
$ids[]=$row->category_id;
$rows[$key]->alias = JFilterOutput::stringURLSafe($row->category_name);
}
}
// _zlenko


my project ibaby.com.ua

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 7 months ago #13860

Thank you for that information.

We will actually change it to:

if(method_exists($app,'stringURLSafe')){
							$prod->alias = $app->stringURLSafe($prod->product_name);
						}else{
							$prod->alias = JFilterOutput::stringURLSafe($prod->product_name);
						}
The new stringURLSafe method which is in the JApplication class handles the slug automatically and should be used so that the code won't need to be changed anymore in the future should the slug option be moved somewhere else or another modification.

That will be included in next release.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum