Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/patches/composer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/patches/composer/fooman_defaults.patch
diff --git a/vendor/fooman/pdfcore-m2/src/Model/Tcpdf/Defaults.php b/vendor/fooman/pdfcore-m2/src/Model/Tcpdf/Defaults.php
Index: ../vendor/fooman/pdfcore-m2/src/Model/Tcpdf/Defaults.php
--- b/vendor/fooman/pdfcore-m2/src/Model/Tcpdf/Defaults.php
+++ a/vendor/fooman/pdfcore-m2/src/Model/Tcpdf/Defaults.php
@@ -36,16 +36,16 @@
             $cacheDir = $this->filesystem->getDirectoryWrite(DirectoryList::CACHE);
             $cacheDir->create('pdfcache/');

-            define('K_TCPDF_EXTERNAL_CONFIG', true);
-            define('K_PATH_MAIN', $this->filesystem->getDirectoryWrite(DirectoryList::MEDIA)->getAbsolutePath());
-            define('K_PATH_URL', $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_MEDIA));
-            define('PDF_HEADER_LOGO', '');
-            define('PDF_HEADER_LOGO_WIDTH', 30);
-            define('K_PATH_CACHE', $cacheDir->getAbsolutePath('pdfcache/'));
-            define('K_BLANK_IMAGE', '_blank.png');
-            define('K_TCPDF_CALLS_IN_HTML', true);
-            define('K_TCPDF_THROW_EXCEPTION_ERROR', true);
-            define(
+            @define('K_TCPDF_EXTERNAL_CONFIG', true);
+            @define('K_PATH_MAIN', $this->filesystem->getDirectoryWrite(DirectoryList::MEDIA)->getAbsolutePath());
+            @define('K_PATH_URL', $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_MEDIA));
+            @define('PDF_HEADER_LOGO', '');
+            @define('PDF_HEADER_LOGO_WIDTH', 30);
+            @define('K_PATH_CACHE', $cacheDir->getAbsolutePath('pdfcache/'));
+            @define('K_BLANK_IMAGE', '_blank.png');
+            @define('K_TCPDF_CALLS_IN_HTML', true);
+            @define('K_TCPDF_THROW_EXCEPTION_ERROR', true);
+            @define(
                 'K_PATH_FONTS',
                 $this->filesystem->getDirectoryWrite(DirectoryList::ROOT)->getAbsolutePath(
                     'vendor/fooman/tcpdf/fonts/'

Spamworldpro Mini