Plugin Directory

Changeset 2449110


Ignore:
Timestamp:
01/02/2021 01:04:01 PM (5 years ago)
Author:
jank404
Message:

fix pdf path

Location:
apollo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apollo/trunk/apollo.php

    r2415367 r2449110  
    44 * Plugin URI:        https://wordpress.org/plugins/apollo
    55 * Description:       Manually or automatically generate invoices and send PDFs as attachments for WooCommerce orders.
    6  * Version:           1.1.13
     6 * Version:           1.1.14
    77 * Author:            Studio404
    88 * Text Domain:       apollo
     
    1414defined( 'ABSPATH' ) or exit;
    1515
    16 define( 'APOLLO_VERSION', '1.1.13' );
     16define( 'APOLLO_VERSION', '1.1.14' );
    1717
    1818function apollo_load_plugin() {
  • apollo/trunk/includes/admin/invoice.php

    r2415367 r2449110  
    318318      }
    319319
    320       $pdf_path = APOLLO_DOCUMENTS_DIR."/".$type." - ".$number.".pdf";
     320      $pdf_path = APOLLO_DOCUMENTS_DIR."/".$id.".pdf";
    321321      if (file_exists($pdf_path)) {
    322322        return $pdf_path;
     
    340340      }
    341341
    342       $pdf_path = APOLLO_DOCUMENTS_DIR."/".$type." - ".$number.".pdf";
     342      $pdf_path = APOLLO_DOCUMENTS_DIR."/".$id.".pdf";
    343343
    344344      if(!file_exists(dirname($pdf_path)))
     
    371371      }
    372372
    373       $pdf_path = APOLLO_DOCUMENTS_DIR."/".$type_name." - ".$number.".pdf";
     373      $pdf_path = APOLLO_DOCUMENTS_DIR."/".$id.".pdf";
    374374      if (!file_exists($pdf_path)) {
    375375        $pdf_path = Apollo_invoice::getPdf($id, $number, $type);
  • apollo/trunk/readme.txt

    r2415367 r2449110  
    8585
    8686== Changelog ==
     87= 1.1.14 - January 2, 2020 =
     88
     89- Fixed: PDF file path bug
     90
    8791= 1.1.13 - November 9, 2020 =
    8892
Note: See TracChangeset for help on using the changeset viewer.