mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix calcolo link pdf per anteprima e firma
This commit is contained in:
parent
b86567bae1
commit
6218a418f0
@ -248,9 +248,7 @@ class Prints
|
|||||||
*/
|
*/
|
||||||
public static function getPDFLink($path)
|
public static function getPDFLink($path)
|
||||||
{
|
{
|
||||||
$base = (stripos($_SERVER['SERVER_PROTOCOL'], 'https') === 0 ? 'https://' : 'http://').$_SERVER['SERVER_NAME'].'/'.ROOTDIR.'/';
|
return ROOTDIR.'/assets/dist/pdfjs/web/viewer.html?file='.BASEURL.'/'.ltrim(str_replace(DOCROOT, '', $path), '/');
|
||||||
|
|
||||||
return ROOTDIR.'/assets/dist/pdfjs/web/viewer.html?file='.$base.ltrim(str_replace(DOCROOT, '', $path), '/');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user