| @@ -12,8 +12,15 @@ | ||
| 12 | 12 | exit; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | + * Composer's autoload.php. | |
| 17 | + */ | |
| 18 | +if ( ! class_exists( 'TCPDF' ) && file_exists( GIVE_PLUGIN_DIR . 'vendor/tecnickcom/tcpdf/tcpdf.php' ) ) { | |
| 19 | + require_once GIVE_PLUGIN_DIR . 'vendor/tecnickcom/tcpdf/tcpdf.php'; | |
| 20 | +} | |
| 21 | + | |
| 22 | +/** | |
| 16 | 23 | * Class Give_PDF |
| 17 | 24 | */ |
| 18 | 25 | class Give_PDF extends TCPDF { |
| 19 | 26 | |
| @@ -94,5 +101,5 @@ | ||
| 94 | 101 | |
| 95 | 102 | $this->Ln( $max_height * 7 ); |
| 96 | 103 | } |
| 97 | 104 | |
| 98 | -} | |
| 105 | +} | |