forked from Wavyzz/dolibarr
FIX #yogosha13890
This commit is contained in:
@@ -270,7 +270,6 @@ if (!empty($_SERVER['DOCUMENT_ROOT']) && substr($_SERVER['DOCUMENT_ROOT'], -6) !
|
||||
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
|
||||
}
|
||||
|
||||
|
||||
// Include the conf.php and functions.lib.php and security.lib.php. This defined the constants like DOL_DOCUMENT_ROOT, DOL_DATA_ROOT, DOL_URL_ROOT...
|
||||
require_once 'filefunc.inc.php';
|
||||
|
||||
@@ -640,11 +639,15 @@ $modulepart = explode("/", $_SERVER["PHP_SELF"]);
|
||||
if (is_array($modulepart) && count($modulepart) > 0) {
|
||||
foreach ($conf->modules as $module) {
|
||||
if (in_array($module, $modulepart)) {
|
||||
$conf->modulepart = $module;
|
||||
$modulepart = $module;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (is_array($modulepart)) {
|
||||
$modulepart = '';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Phase authentication / login
|
||||
@@ -3106,7 +3109,7 @@ function main_area($title = '')
|
||||
print '<tbody>';
|
||||
print '<tr><td rowspan="0" class="width20p">';
|
||||
if ($conf->global->MAIN_SHOW_LOGO && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && !empty($conf->global->MAIN_INFO_SOCIETE_LOGO)) {
|
||||
print '<img id="mysoc-info-header-logo" style="max-width:100%" alt="" src="'.DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/'.dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_LOGO)).'">';
|
||||
print '<img id="mysoc-info-header-logo" style="max-width:100%" alt="" src="'.DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/'.dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_LOGO)).'">';
|
||||
}
|
||||
print '</td><td rowspan="0" class="width50p"></td></tr>'."\n";
|
||||
print '<tr><td class="titre bold">'.dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_NOM).'</td></tr>'."\n";
|
||||
|
||||
Reference in New Issue
Block a user