mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-17 23:11:29 +01:00
Debug v23
This commit is contained in:
@@ -3133,9 +3133,9 @@ function printCodeForPing($constanttosavelastko, $constanttosavefirstok, $arrayo
|
||||
|
||||
// Disable ping if $constanttosavelastpingko is set and is recent (this month)
|
||||
if (getDolGlobalString($constanttosavelastko) && substr(getDolGlobalString($constanttosavelastko), 0, 6) == dol_print_date(dol_now(), '%Y%m') && !$forceping) {
|
||||
print "\n<!-- NO JS CODE TO ENABLE the a call for ".$constanttosavelastko.". An error already occurred this month (".$constanttosavelastko." is set), we will re-try next month. -->\n";
|
||||
print "\n<!-- NO JS CODE TO ENABLE the call for ".$constanttosavefirstok.". An error already occurred this month (".$constanttosavelastko." is set), we will re-try next month. -->\n";
|
||||
} else {
|
||||
print "\n".'<!-- Includes JS to make ajax call for '.$constanttosavelastko.'. forceping='.$forceping.' '.$constanttosavefirstok.'='.getDolGlobalString($constanttosavefirstok).' '.$constanttosavelastko.'='.getDolGlobalString($constanttosavelastko).' -->'."\n";
|
||||
print "\n".'<!-- Includes JS to make ajax call for '.$constanttosavefirstok.'. forceping='.$forceping.' '.$constanttosavefirstok.'='.getDolGlobalString($constanttosavefirstok).' '.$constanttosavelastko.'='.getDolGlobalString($constanttosavelastko).' -->'."\n";
|
||||
print "<!-- JS CODE TO ENABLE the call -->\n";
|
||||
$url_for_ping = getDolGlobalString('MAIN_URL_FOR_PING', "https://ping.dolibarr.org/");
|
||||
// Try to guess the distrib used
|
||||
|
||||
Reference in New Issue
Block a user