';
print '';
diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php
index 3fe6dee8820..2bf03129210 100644
--- a/htdocs/core/js/lib_head.js.php
+++ b/htdocs/core/js/lib_head.js.php
@@ -990,6 +990,7 @@ function document_preview(file, type, title)
img.src = file;
}
+
function show_preview(mode) {
/* console.log("mode="+mode+" file="+file+" type="+type+" width="+width+" height="+height); */
var newElem = '';
@@ -1004,6 +1005,7 @@ function document_preview(file, type, title)
}
$("#dialogforpopup").html(newElem);
+
$("#dialogforpopup").dialog({
closeOnEscape: true,
resizable: true,
diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php
index 9f2676dfd72..dcb59df7ebb 100644
--- a/htdocs/core/modules/DolibarrModules.class.php
+++ b/htdocs/core/modules/DolibarrModules.class.php
@@ -826,7 +826,9 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
/**
- * Tells if module is core or external
+ * Tells if module is core or external.
+ * 'dolibarr' and 'dolibarr_deprecated' is core
+ * 'experimental' and 'development' is core
*
* @return string 'core', 'external' or 'unknown'
*/
diff --git a/htdocs/debugbar/class/DataCollector/DolLogsCollector.php b/htdocs/debugbar/class/DataCollector/DolLogsCollector.php
index 5fd339918fa..d21cdd6233f 100644
--- a/htdocs/debugbar/class/DataCollector/DolLogsCollector.php
+++ b/htdocs/debugbar/class/DataCollector/DolLogsCollector.php
@@ -73,7 +73,7 @@ class DolLogsCollector extends MessagesCollector
{
global $conf;
- $uselogfile = getDolGlobalInt('DEBUGBAR_USE_LOGFILE');
+ $uselogfile = getDolGlobalInt('DEBUGBAR_USE_LOG_FILE');
if ($uselogfile) {
$this->getStorageLogs($this->path);
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index dcc714776bf..3b0aa3bdd1a 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -2250,3 +2250,5 @@ ExportUseLowMemoryModeHelp=Use the low memory mode to execute the exec of the du
ShowQuickAddLink=Show a button to quickly add an element in top right menu
HashForPing=Hash used for ping
ReadOnlyMode=Is instance in "Read Only" mode
+DEBUGBAR_USE_LOG_FILE=Use the dolibarr.log file to trap Logs
+UsingLogFileShowAllRecordOfSubrequestButIsSlower=Use the dolibarr.log file to trap Logs instead of live memory catching. It allows to catch all logs instead of only log of current process (so including the one of ajax subrequests pages) but will make your instance very very slow. Not recommended.