forked from Wavyzz/dolibarr
FIX #5746 chrome php
Try a fix. Not sure it solved all problems reported
This commit is contained in:
@@ -5365,7 +5365,7 @@ function printCommonFooter($zone='private')
|
|||||||
|
|
||||||
print '<!-- If page_y set, we set scollbar with it -->'."\n";
|
print '<!-- If page_y set, we set scollbar with it -->'."\n";
|
||||||
print "page_y=getParameterByName('page_y', 0);";
|
print "page_y=getParameterByName('page_y', 0);";
|
||||||
print "if (page_y > 0) $('html, body').scrollTop(page_y);";
|
print "if (page_y > 0) $('html, body').scrollTop(page_y);\n";
|
||||||
|
|
||||||
print '<!-- Set handler to add page_y param on some a href links -->'."\n";
|
print '<!-- Set handler to add page_y param on some a href links -->'."\n";
|
||||||
print 'jQuery(".reposition").click(function() {
|
print 'jQuery(".reposition").click(function() {
|
||||||
|
|||||||
@@ -120,9 +120,16 @@ class mod_syslog_chromephp extends LogHandler implements LogHandlerInterface
|
|||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
if (! file_exists($conf->global->SYSLOG_CHROMEPHP_INCLUDEPATH.'/ChromePhp.php') && ! file_exists($conf->global->SYSLOG_CHROMEPHP_INCLUDEPATH.'/ChromePhp.class.php'))
|
if (! file_exists($conf->global->SYSLOG_CHROMEPHP_INCLUDEPATH.'/ChromePhp.php') && ! file_exists($conf->global->SYSLOG_CHROMEPHP_INCLUDEPATH.'/ChromePhp.class.php'))
|
||||||
|
{
|
||||||
|
if (is_object($langs)) // $langs may not be defined yet.
|
||||||
{
|
{
|
||||||
$errors[] = $langs->trans("ErrorFailedToOpenFile", 'ChromePhp.class.php or ChromePhp.php');
|
$errors[] = $langs->trans("ErrorFailedToOpenFile", 'ChromePhp.class.php or ChromePhp.php');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$errors[] = "ErrorFailedToOpenFile ChromePhp.class.php or ChromePhp.php";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user