mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch 'develop' into develop
This commit is contained in:
commit
a5a5e7d3ab
|
|
@ -233,8 +233,8 @@ class Ai
|
|||
);
|
||||
|
||||
// Add a system message
|
||||
$addDateTimeContext = 0;
|
||||
if ($addDateTimeContext) {
|
||||
$addDateTimeContext = false;
|
||||
if ($addDateTimeContext) { // @phpstan-ignore-line
|
||||
$prePrompt = ($prePrompt ? $prePrompt.(preg_match('/[\.\!\?]$/', $prePrompt) ? '' : '.').' ' : '').'Today we are '.dol_print_date(dol_now(), 'dayhourtext');
|
||||
}
|
||||
if ($prePrompt) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
/**
|
||||
* Prepare admin pages header
|
||||
*
|
||||
* @return array<string,array<string,string>>}>
|
||||
* @return array<string,array<string,string>>
|
||||
*/
|
||||
function getLitOfAIFeatures()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
|
|||
dol_syslog("getURLContent postorget=".$postorget." URL=".$url." param=".$param);
|
||||
|
||||
if (!function_exists('curl_init')) {
|
||||
return array('http_code' => 500, 'content' => '', 'curl_error_no' => 'PHP curl lib not available', 'curl_error_msg' => 'PHP curl library must be installed');
|
||||
return array('http_code' => 500, 'content' => '', 'curl_error_no' => 1, 'curl_error_msg' => 'PHP curl library must be installed');
|
||||
}
|
||||
|
||||
//setting the curl parameters.
|
||||
|
|
|
|||
|
|
@ -3548,7 +3548,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
|
||||
print '<span class="websiteselection">';
|
||||
|
||||
print '<input type="image" class="valignmiddle buttonwebsite" src="'.img_picto('', 'refresh', '', 0, 1).'" name="refreshpage" value="'.$langs->trans("Load").'"'.(($action != 'editsource') ? '' : ' disabled="disabled"').'>';
|
||||
print '<input type="image" class="valignmiddle buttonwebsite hideonsmartphone" src="'.img_picto('', 'refresh', '', 0, 1).'" name="refreshpage" value="'.$langs->trans("Load").'"'.(($action != 'editsource') ? '' : ' disabled="disabled"').'>';
|
||||
|
||||
// Print nav arrows
|
||||
$pagepreviousid = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user