Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/config.devel.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

mysqli_report(MYSQLI_REPORT_OFF);
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
error_reporting(E_ALL & ~E_NOTICE);
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);

Expand Down Expand Up @@ -211,5 +211,5 @@
* Error logging
*/
$conf['settings']['logging']['folder'] = '/var/log/librebooking/log'; //Absolute path to folder were the log will be written, writing permissions to the folder are required
$conf['settings']['logging']['level'] = 'debug'; //Set to none disable logs, error to only log errors or debug to log all messages to the app.log file
$conf['settings']['logging']['level'] = 'debug'; //Set to none disable logs, error to only log errors or debug to log all messages to the app.log file
$conf['settings']['logging']['sql'] = 'false'; //Set to true no enable the creation of and sql.log file
2 changes: 1 addition & 1 deletion config/config.dist.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

mysqli_report(MYSQLI_REPORT_OFF);
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
error_reporting(E_ALL & ~E_NOTICE);
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);

Expand Down
2 changes: 1 addition & 1 deletion lib/Config/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private function AddErrorReporting($file)
return;
}
$contents = file_get_contents($file);
$new = str_replace("<?php", "<?php\r\nmysqli_report(MYSQLI_REPORT_OFF);\r\nerror_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);\r\n", $contents);
$new = str_replace("<?php", "<?php\r\nmysqli_report(MYSQLI_REPORT_OFF);\r\nerror_reporting(E_ALL & ~E_NOTICE);\r\n", $contents);

file_put_contents($file, $new);
}
Expand Down
4 changes: 2 additions & 2 deletions tpl/Install/configure.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<div class="alert alert-secondary" style="font-family: courier;">
&lt;?php<br />
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);<br />
error_reporting(E_ALL & ~E_NOTICE);<br />
{$ManualConfig|nl2br}
?&gt;
</div>
Expand All @@ -49,4 +49,4 @@
</div>
</div>
{include file="javascript-includes.tpl"}
{include file='globalfooter.tpl'}
{include file='globalfooter.tpl'}