New: Can set page to use for getNomUrl of project.

This commit is contained in:
Laurent Destailleur 2014-05-09 13:21:10 +02:00
parent 8985d60c5b
commit 8bf1fde598

View File

@ -766,8 +766,16 @@ class Project extends CommonObject
if ($option != 'nolink')
{
$lien = '<a href="' . DOL_URL_ROOT . '/projet/fiche.php?id=' . $this->id . '">';
$lienfin = '</a>';
if (preg_match('/\.php$/',$option))
{
$lien = '<a href="' . dol_buildpath($option,1) . '?id=' . $this->id . '">';
$lienfin = '</a>';
}
else
{
$lien = '<a href="' . DOL_URL_ROOT . '/projet/fiche.php?id=' . $this->id . '">';
$lienfin = '</a>';
}
}
$picto = 'projectpub';