mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-21 15:16:37 +02:00
fix document
This commit is contained in:
parent
c6a93c1650
commit
51aacf48ed
12
app.php
12
app.php
|
@ -28,10 +28,6 @@ if($f3->get('PDF_STORAGE_PATH') && !preg_match('|/$|', $f3->get('PDF_STORAGE_PAT
|
|||
$f3->set('PDF_STORAGE_PATH', $f3->get('PDF_STORAGE_PATH').'/');
|
||||
}
|
||||
|
||||
if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) {
|
||||
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf');
|
||||
}
|
||||
|
||||
$f3->set('disableOrganization', false);
|
||||
if($f3->get('DISABLE_ORGANIZATION')) {
|
||||
$f3->set('disableOrganization', $f3->get('DISABLE_ORGANIZATION'));
|
||||
|
@ -64,6 +60,14 @@ if($f3->get('TRANSLATION_LANGUAGE') == "ar") {
|
|||
$f3->set('DIRECTION_LANGUAGE', 'rtl');
|
||||
}
|
||||
|
||||
if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) {
|
||||
if ($f3->get('TRANSLATION_LANGUAGE') == "ar") {
|
||||
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document_ar.pdf');
|
||||
} else {
|
||||
$f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf');
|
||||
}
|
||||
}
|
||||
|
||||
$f3->route('GET /',
|
||||
function($f3) {
|
||||
$f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature');
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue