21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: pap_url.class.php,v 1.6 2006-12-08 20:12:21 jp_milcent Exp $ |
// CVS : $Id: pap_url.class.php,v 1.7 2007-05-24 16:53:04 jp_milcent Exp $ |
/** |
* Classe de gestion des url de Papyrus |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.6 $ $Date: 2006-12-08 20:12:21 $ |
*@version $Revision: 1.7 $ $Date: 2007-05-24 16:53:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
339,7 → 339,10 |
// Construction du permalien ou pas |
if ($this->getPermalienBool()) { |
// Récupération du chemin jusqu'au fichier principal de Papyrus |
$this->path = (dirname($this->path) == DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : dirname($this->path).DIRECTORY_SEPARATOR; |
//$this->path = (dirname($this->path) == DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : dirname($this->path).DIRECTORY_SEPARATOR; |
// La ligne ci-dessus semble poser problème, je l'ai remplacé par l'expression régulière ci-dessous (jpm - 24 mai 2007) |
$this->path = preg_replace('/^(.*\/)[^\/]*$/', '$1', $this->path); |
|
// On vide le permalien construite par les appels à getUrl() avant de le remplir |
$this->setPermalien(); |
if (constant('GEN_URL_RACCOURCI_ID_TYPE_'.$this->getUrlType()) == 'int') { |
394,6 → 397,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2006-12-08 20:12:21 jp_milcent |
* Ajout d'un message d'erreur si un mauvais type de menu est utilisé. |
* |
* Revision 1.5 2006/12/08 20:02:52 jp_milcent |
* Suppression de l'éventuel identifiant de menu passé en paramêtre des url de site. |
* |