Extra .pdf appended to filenames
-
I noticed that every pdf download had an extra .pdf appended to it, for example myfile.pdf.pdf.
In the wp_pdf_templates.php file on line 334 and 335 you have:
$filename = get_the_title() . ‘.pdf’;
$cached = PDF_CACHE_DIRECTORY . get_the_title() . ‘-‘ . substr(md5(get_the_modified_time()), -6) . ‘.pdf’;I removed the .pdf from line 334 and the problem was solved. I just wanted to let you know.
Thanks!
- The topic ‘Extra .pdf appended to filenames’ is closed to new replies.