mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Miglioramento della gestione stampe
Introdotto il framework mPDF per rendere più semplice la gestione delle stampe, con relativo aggiornamento alla nuova versione delle stampe per interventi e fatture. Bugfix e miglioramenti vari distribuiti.
This commit is contained in:
10
lib/util.php
10
lib/util.php
@@ -226,12 +226,12 @@ if (!function_exists('force_download')) {
|
||||
header('Content-Type: application/force-download');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
|
||||
if ($content) {
|
||||
if (is_file($content)) {
|
||||
$content = file_get_contents($content);
|
||||
}
|
||||
if (empty($content) && is_file($filename)) {
|
||||
$content = $filename;
|
||||
}
|
||||
|
||||
header('Content-Length: '.strlen($content));
|
||||
if (is_file($content)) {
|
||||
$content = file_get_contents($content);
|
||||
}
|
||||
|
||||
ob_clean();
|
||||
|
Reference in New Issue
Block a user