Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1451
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: pap_url.class.php,v 1.6 2006-12-08 20:12:21 jp_milcent Exp $
24
// CVS : $Id: pap_url.class.php,v 1.6.2.1 2007-06-06 14:36:54 jp_milcent Exp $
25
/**
25
/**
26
* Classe de gestion des url de Papyrus
26
* Classe de gestion des url de Papyrus
27
*
27
*
28
* Permet de gérer la réecriture des url.
28
* Permet de gérer la réecriture des url.
29
*
29
*
Line 32... Line 32...
32
//Auteur original :
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Aucun
35
*@author        Aucun
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.6 $ $Date: 2006-12-08 20:12:21 $
37
*@version       $Revision: 1.6.2.1 $ $Date: 2007-06-06 14:36:54 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
Line 40... Line 40...
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
Line 337... Line 337...
337
        }
337
        }
Line 338... Line 338...
338
        
338
        
339
		// Construction du permalien ou pas
339
		// Construction du permalien ou pas
340
        if ($this->getPermalienBool()) {
340
        if ($this->getPermalienBool()) {
341
            // Récupération du chemin jusqu'au fichier principal de Papyrus
341
            // Récupération du chemin jusqu'au fichier principal de Papyrus
-
 
342
            //$this->path = (dirname($this->path) == DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : dirname($this->path).DIRECTORY_SEPARATOR;
-
 
343
            // La ligne ci-dessus semble poser problème, je l'ai remplacé par l'expression régulière ci-dessous (jpm - 24 mai 2007)
-
 
344
            $this->path = preg_replace('/^(.*\/)[^\/]*$/', '$1', $this->path);
342
            $this->path = (dirname($this->path) == DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : dirname($this->path).DIRECTORY_SEPARATOR;
345
 
343
            // On vide le permalien construite par les appels à getUrl() avant de le remplir
346
            // On vide le permalien construite par les appels à getUrl() avant de le remplir
344
            $this->setPermalien();
347
            $this->setPermalien();
345
            if (constant('GEN_URL_RACCOURCI_ID_TYPE_'.$this->getUrlType()) == 'int') {
348
            if (constant('GEN_URL_RACCOURCI_ID_TYPE_'.$this->getUrlType()) == 'int') {
346
                $this->setPermalien($this->getCodeNum());
349
                $this->setPermalien($this->getCodeNum());
Line 392... Line 395...
392
 
395
 
393
 
396
 
394
/* +--Fin du code ----------------------------------------------------------------------------------------+
397
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
398
*
-
 
399
* $Log: not supported by cvs2svn $
-
 
400
* Revision 1.6  2006-12-08 20:12:21  jp_milcent
395
*
401
* Ajout d'un message d'erreur si un mauvais type de menu est utilisé.
396
* $Log: not supported by cvs2svn $
402
*
397
* Revision 1.5  2006/12/08 20:02:52  jp_milcent
403
* Revision 1.5  2006/12/08 20:02:52  jp_milcent
398
* Suppression de l'éventuel identifiant de menu passé en paramêtre des url de site.
404
* Suppression de l'éventuel identifiant de menu passé en paramêtre des url de site.
399
*
405
*