Possible Bug dans le helper BackEnd

  • Posts: 99
  • Thank you received: 3
6 years 2 months ago #286323

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

Bonjour,

J'ai voulu utiliser la fonction $imageHelper->getThumbnail pour generer des images, mais avec la variable $cachePath.

J'ai pour message d'erreur que la fonction JFolder::clearpath n'existe pas (Ligne 373 du fichier image.php dans le helper du Back end.)

Ne faudrait il pas remplacer:

$cachePath = rtrim(JFolder::cleanPath($cachePath), DS) . DS;
par
$cachePath = rtrim(JFolder::makeSafe($cachePath), DS) . DS;

Nicolas


Joomla 3
Last edit: 6 years 2 months ago by nilegoff.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
6 years 2 months ago #286325

Bonjour,

Comme cela je dirais plutôt "JFolder::clean()" comme on peut le voir dans les lignes alentours.

Cordialement,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 99
  • Thank you received: 3
6 years 2 months ago #286369

Bonjour,

Je ne retrouve pas de JFolder::Clean() dans l'API 3.8
https://api.joomla.org/cms-3/classes/JFolder.html

Nicolas


Joomla 3

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
6 years 2 months ago #286375

Bonjour,

Jérôme voulait dire JPath::clean()
Nous allons changer cela pour la prochaine version.
Merci du retour.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum