mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Correzioni per gli errori su costanti globali
Utilizzo delle nuove funzioni base_dir, base_url e base_link per sostituire DOCROOT; BASEURL e ROOTDIR. Correzioni sul trait StoreTrait, ora definito come LocalPoolTrait e utilizzante il metodo pool.
This commit is contained in:
8
bug.php
8
bug.php
@@ -38,13 +38,13 @@ if (filter('op') == 'send') {
|
||||
$mail->Subject = 'Segnalazione bug OSM '.$version;
|
||||
|
||||
// Aggiunta dei file di log (facoltativo)
|
||||
if (!empty(post('log')) && file_exists($docroot.'/logs/error.log')) {
|
||||
$mail->AddAttachment($docroot.'/logs/error.log');
|
||||
if (!empty(post('log')) && file_exists(base_dir().'/logs/error.log')) {
|
||||
$mail->AddAttachment(base_dir().'/logs/error.log');
|
||||
}
|
||||
|
||||
// Aggiunta della copia del database (facoltativo)
|
||||
if (!empty(post('sql'))) {
|
||||
$backup_file = $docroot.'/Backup OSM '.date('Y-m-d').' '.date('H_i_s').'.sql';
|
||||
$backup_file = base_dir().'/Backup OSM '.date('Y-m-d').' '.date('H_i_s').'.sql';
|
||||
Backup::database($backup_file);
|
||||
|
||||
$mail->AddAttachment($backup_file);
|
||||
@@ -87,7 +87,7 @@ if (filter('op') == 'send') {
|
||||
delete($backup_file);
|
||||
}
|
||||
|
||||
redirect($rootdir.'/bug.php');
|
||||
redirect(base_link().'/bug.php');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user