';
}
diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php
index 2f36d32535f..4b2d5aa04ce 100644
--- a/htdocs/core/tpl/passwordforgotten.tpl.php
+++ b/htdocs/core/tpl/passwordforgotten.tpl.php
@@ -155,7 +155,7 @@ if (! empty($morelogincontent)) {
class="button" name="button_password" value="trans('SendNewPassword'); ?>" tabindex="4" />
+
dol_hide_topmenu)) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_hide_topmenu='.$conf->dol_hide_topmenu;
@@ -163,7 +163,7 @@ if (! empty($morelogincontent)) {
if (! empty($conf->dol_no_mouse_hover)) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_no_mouse_hover='.$conf->dol_no_mouse_hover;
if (! empty($conf->dol_use_jmobile)) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_use_jmobile='.$conf->dol_use_jmobile;
- print '
('.$langs->trans('BackToLoginPage').')';
+ print '
'.$langs->trans('BackToLoginPage').'';
?>
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index fb19b5d8c4e..b6e744672e8 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1664,6 +1664,9 @@ div.mainmenu.menu {
#mainmenutd_menu a.tmenuimage {
display: unset;
}
+a.tmenuimage {
+ display: block;
+}
/* Do not load menu img for other if hidden to save bandwidth */
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index cec44aa00af..59bd8fe5e24 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -1809,7 +1809,9 @@ foreach($mainmenuusedarray as $val)
display: none;
}
-
+a.tmenuimage {
+ display: block;
+}
/* Login */
diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php
index c3d18b889e7..a6b5dcc51f7 100644
--- a/htdocs/website/class/website.class.php
+++ b/htdocs/website/class/website.class.php
@@ -781,13 +781,21 @@ class Website extends CommonObject
return '';
}
- $srcdir = $conf->website->dir_output.'/'.$website->ref;
- $destdir = $conf->website->dir_temp.'/'.$website->ref.'/containers';
+ $destdir = $conf->website->dir_temp.'/'.$website->ref;
+
+ dol_syslog("Clear temp dir ".$destdir);
+ $count=0; $countreallydeleted=0;
+ $counttodelete = dol_delete_dir_recursive($destdir, $count, 1, 0, $countreallydeleted);
+ if ($counttodelete != $countreallydeleted)
+ {
+ setEventMessages("Failed to clean temp directory ".$destdir, null, 'errors');
+ return '';
+ }
$arrayreplacement=array();
- dol_syslog("Clear temp dir ".$destdir);
- dol_delete_dir($destdir, 1);
+ $srcdir = $conf->website->dir_output.'/'.$website->ref;
+ $destdir = $conf->website->dir_temp.'/'.$website->ref.'/containers';
dol_syslog("Copy content from ".$srcdir." into ".$destdir);
dolCopyDir($srcdir, $destdir, 0, 1, $arrayreplacement);
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index cd9a26dfa8c..68d082db6bf 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -1420,7 +1420,7 @@ if (count($object->records) > 0)
$out.=ajax_combobox('website');
print $out;
//print '
';
- print '
';
+ print '
';
if ($websitekey)
@@ -1587,7 +1587,7 @@ if (count($object->records) > 0)
}
//print '
';
- print '
';
+ print '
';
// Print nav arrows
@@ -1619,10 +1619,10 @@ if (count($object->records) > 0)
else dol_print_error($db);
}
- if ($pagepreviousid) print '
'.img_previous($langs->trans("PreviousContainer")).'';
- else print '
'.img_previous($langs->trans("PreviousContainer")).'';
- if ($pagenextid) print '
'.img_next($langs->trans("NextContainer")).'';
- else print '
'.img_next($langs->trans("NextContainer")).'';
+ if ($pagepreviousid) print '
'.img_previous($langs->trans("PreviousContainer")).'';
+ else print '
'.img_previous($langs->trans("PreviousContainer")).'';
+ if ($pagenextid) print '
'.img_next($langs->trans("NextContainer")).'';
+ else print '
'.img_next($langs->trans("NextContainer")).'';
$websitepage = new WebSitePage($db);
if ($pageid > 0 && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone'))
@@ -2321,7 +2321,6 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
{
// Ouput page under the Dolibarr top menu
$objectpage->fetch($pageid);
- $csscontent = @file_get_contents($filecss);
$jscontent = @file_get_contents($filejs);
$out = ''."\n";
@@ -2341,7 +2340,11 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
$out.='