Comment code of a deprecated variable.
This commit is contained in:
parent
4298e5466a
commit
b1f528f4d5
@ -1719,7 +1719,7 @@ function img_picto($alt, $picto, $options = '', $pictoisfullpath = false, $srcon
|
|||||||
|
|
||||||
$path = 'theme/'.$theme;
|
$path = 'theme/'.$theme;
|
||||||
if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) $path = $conf->global->MAIN_OVERWRITE_THEME_RES.'/theme/'.$conf->global->MAIN_OVERWRITE_THEME_RES;
|
if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) $path = $conf->global->MAIN_OVERWRITE_THEME_RES.'/theme/'.$conf->global->MAIN_OVERWRITE_THEME_RES;
|
||||||
if (! empty($conf->global->MAIN_FORCETHEMEDIR)) $path = preg_replace('/^\//', '', $conf->global->MAIN_FORCETHEMEDIR).'/'.$path; // TODO What if there is both FORCETHEMDIR and OVERWRITE_THEM_RES
|
//if (! empty($conf->global->MAIN_FORCETHEMEDIR)) $path = preg_replace('/^\//', '', $conf->global->MAIN_FORCETHEMEDIR).'/'.$path; // TODO What if there is both FORCETHEMDIR and OVERWRITE_THEM_RES
|
||||||
// If we ask an image into $url/$mymodule/img (instead of default path)
|
// If we ask an image into $url/$mymodule/img (instead of default path)
|
||||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$picto,$regs))
|
if (preg_match('/^([^@]+)@([^@]+)$/i',$picto,$regs))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -153,7 +153,8 @@ function dol_loginfunction($langs,$conf,$mysoc)
|
|||||||
|
|
||||||
// Note: $conf->css looks like '/theme/eldy/style.css.php'
|
// Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||||
$conf->css = "/theme/".(GETPOST('theme')?GETPOST('theme','alpha'):$conf->theme)."/style.css.php";
|
$conf->css = "/theme/".(GETPOST('theme')?GETPOST('theme','alpha'):$conf->theme)."/style.css.php";
|
||||||
$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
//$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
||||||
|
$themepath=dol_buildpath($conf->css,1);
|
||||||
if (! empty($conf->modules_parts['theme'])) // Using this feature slow down application
|
if (! empty($conf->modules_parts['theme'])) // Using this feature slow down application
|
||||||
{
|
{
|
||||||
foreach($conf->modules_parts['theme'] as $reldir)
|
foreach($conf->modules_parts['theme'] as $reldir)
|
||||||
|
|||||||
@ -224,8 +224,8 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$bc;
|
global $conf,$langs,$bc;
|
||||||
|
|
||||||
//$conf->global->MAIN_FORCETHEMEDIR='';
|
//$dirthemes=array(empty($conf->global->MAIN_FORCETHEMEDIR)?'/theme':$conf->global->MAIN_FORCETHEMEDIR.'/theme');
|
||||||
$dirthemes=array(empty($conf->global->MAIN_FORCETHEMEDIR)?'/theme':$conf->global->MAIN_FORCETHEMEDIR.'/theme');
|
$dirthemes=array('/theme');
|
||||||
if (! empty($conf->modules_parts['theme'])) // Using this feature slow down application
|
if (! empty($conf->modules_parts['theme'])) // Using this feature slow down application
|
||||||
{
|
{
|
||||||
foreach($conf->modules_parts['theme'] as $reldir)
|
foreach($conf->modules_parts['theme'] as $reldir)
|
||||||
|
|||||||
@ -1012,7 +1012,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
|
|||||||
|
|
||||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||||
$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
//$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
||||||
|
$themepath=dol_buildpath($conf->css,1);
|
||||||
$themesubdir='';
|
$themesubdir='';
|
||||||
if (! empty($conf->modules_parts['theme'])) // This slow down
|
if (! empty($conf->modules_parts['theme'])) // This slow down
|
||||||
{
|
{
|
||||||
|
|||||||
@ -171,7 +171,8 @@ else
|
|||||||
|
|
||||||
// Note: $conf->css looks like '/theme/eldy/style.css.php'
|
// Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||||
$conf->css = "/theme/".(GETPOST('theme')?GETPOST('theme','alpha'):$conf->theme)."/style.css.php";
|
$conf->css = "/theme/".(GETPOST('theme')?GETPOST('theme','alpha'):$conf->theme)."/style.css.php";
|
||||||
$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
//$themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1);
|
||||||
|
$themepath=dol_buildpath($conf->css,1);
|
||||||
if (! empty($conf->modules_parts['theme'])) // This slow down
|
if (! empty($conf->modules_parts['theme'])) // This slow down
|
||||||
{
|
{
|
||||||
foreach($conf->modules_parts['theme'] as $reldir)
|
foreach($conf->modules_parts['theme'] as $reldir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user