Jump to content

Ajout code dans supplier.php

Recommended Posts


Est-ce que quelqu'un peut me dire quel est séparateur à mettre si je veux rajouter _PS_AUTH_IMG_DIR après _PS_MANU_IMG_DIR_; ligne55 dans supplier.php. En effet j'ai rajouté un répertoire Autheur.

 $data = call_user_func(array($className, 'get'.$className.'s'), true, intval($cookie->id_lang), true, $p, $n);
   $imgDir = $objectType == 'supplier' ? _PS_SUPP_IMG_DIR_ : _PS_MANU_IMG_DIR_;
   foreach ($data AS &$item)
       $item['image'] = (!file_exists($imgDir.'/'.$item['id_'.$objectType].'-medium.jpg')) ? 
           Language::getIsoById(intval($cookie->id_lang)).'-default' :    $item['id_'.$objectType];

Merci par avance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...