Blob Blame Raw
diff -uNr moodle.orig/lib/pdflib.php moodle/lib/pdflib.php
--- moodle.orig/lib/pdflib.php	2015-05-10 13:16:07.000000000 +0300
+++ moodle/lib/pdflib.php	2015-05-20 15:25:31.898193286 +0300
@@ -87,7 +87,7 @@
 function tcpdf_init_k_font_path() {
     global $CFG;
 
-    $defaultfonts = $CFG->dirroot.'/lib/tcpdf/fonts/';
+    $defaultfonts = '/usr/share/php/tcpdf/fonts/';
 
     if (!defined('K_PATH_FONTS')) {
         if (is_dir(PDF_CUSTOM_FONT_PATH)) {
@@ -123,10 +123,10 @@
 tcpdf_init_k_font_path();
 
 /** tcpdf installation path */
-define('K_PATH_MAIN', $CFG->dirroot.'/lib/tcpdf/');
+define('K_PATH_MAIN', '/usr/share/php/tcpdf/');
 
 /** URL path to tcpdf installation folder */
-define('K_PATH_URL', $CFG->wwwroot . '/lib/tcpdf/');
+define('K_PATH_URL', '/usr/share/php/tcpdf/');
 
 /** cache directory for temporary files (full path) */
 define('K_PATH_CACHE', $CFG->cachedir . '/tcpdf/');
--- moodle/lib/pdflib.php~	2016-12-05 08:23:48.000000000 -0600
+++ moodle/lib/pdflib.php	2016-12-05 08:29:37.548819777 -0600
@@ -146,7 +146,7 @@
 /** Throw exceptions from errors so they can be caught and recovered from. */
 define('K_TCPDF_THROW_EXCEPTION_ERROR', true);
 
-require_once(__DIR__.'/tcpdf/tcpdf.php');
+require_once('/tcpdf/tcpdf.php');
 
 /**
  * Wrapper class that extends TCPDF (lib/tcpdf/tcpdf.php).