diff --git a/public_html/wp-content/plugins/camptix-invoices/includes/class-camptix-addon-invoices.php b/public_html/wp-content/plugins/camptix-invoices/includes/class-camptix-addon-invoices.php
index a54eb06b..b7ba67f3 100644
a
|
b
|
public static function create_invoice_document( $invoice_id ) { |
383 | 383 | |
384 | 384 | $logo = CTX_INV_DIR . '/admin/images/wp-community-support.png'; |
385 | 385 | if ( ! empty( $camptix_opts['invoice-logo'] ) ) { |
386 | | $attachment = wp_get_attachment_image_src( $camptix_opts['invoice-logo'], 'full' ); |
387 | | $logo = $attachment[0]; |
| 386 | $logo = get_attached_file( $camptix_opts['invoice-logo'] ); |
388 | 387 | } |
389 | 388 | |
390 | 389 | $template = locate_template( 'invoice-template.php' ) ? locate_template( 'invoice-template.php' ) : CTX_INV_DIR . '/includes/views/invoice-template.php'; |