Display application Title if filled on login page
This commit is contained in:
parent
70082d17b4
commit
3efcb0dfeb
@ -52,7 +52,13 @@ $arrayofjs = array(
|
|||||||
'/includes/jstz/jstz.min.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION)),
|
'/includes/jstz/jstz.min.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION)),
|
||||||
'/core/js/dst.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION))
|
'/core/js/dst.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION))
|
||||||
);
|
);
|
||||||
$titleofloginpage = $langs->trans('Login').' @ '.$titletruedolibarrversion; // $titletruedolibarrversion is defined by dol_loginfunction in security2.lib.php. We must keep the @, some tools use it to know it is login page and find true dolibarr version.
|
|
||||||
|
// we display application title instead Login term
|
||||||
|
if (!empty($conf->global->MAIN_APPLICATION_TITLE))
|
||||||
|
$titleofloginpage = $conf->global->MAIN_APPLICATION_TITLE;
|
||||||
|
else
|
||||||
|
$titleofloginpage = $langs->trans('Login');
|
||||||
|
$titleofloginpage.= ' @ '.$titletruedolibarrversion; // $titletruedolibarrversion is defined by dol_loginfunction in security2.lib.php. We must keep the @, some tools use it to know it is login page and find true dolibarr version.
|
||||||
|
|
||||||
$disablenofollow = 1;
|
$disablenofollow = 1;
|
||||||
if (!preg_match('/'.constant('DOL_APPLICATION_TITLE').'/', $title)) $disablenofollow = 0;
|
if (!preg_match('/'.constant('DOL_APPLICATION_TITLE').'/', $title)) $disablenofollow = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user