[Plugin: Make PDF Newspaper] Bug with categories -I ncludes aFix
-
In make-pdf-newspaper.2.2.3 If you use raw categories of the form ?cat=XXX in your URLs, then the ? and the = both appear in the filename of the generated PDF. I note already that on line 93 of makepdf.php you are replacing / with – in the filename (to handle the pretty URL case which has slashes). If you do the same with ? and = by introducing the following two lines immediately after line 93
$catExt = str_replace(“?”,”-“,$catExt);
$catExt = str_replace(“=”,”-“,$catExt);The problem goes away.
Simple fix, best if you do it in the codebase and put it in a new version.Great plugin by the way.
Mike
https://www.ads-software.com/extend/plugins/make-pdf-newspaper/
- The topic ‘[Plugin: Make PDF Newspaper] Bug with categories -I ncludes aFix’ is closed to new replies.