Skip to content

Commit 125fa85

Browse files
committed
make variables outside class definition explicitly global to allow autoloading
1 parent 7aeb1ca commit 125fa85

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ This repository only contains the separate php class written for form filling. I
1111
Once again, all credits to Olivier Plathey for providing an easy to use extension to his FPDF library!
1212

1313
# Version
14-
Based on version 2.9 (2017-05-11) available from http://www.fpdf.org/en/script/script93.php
14+
Based on version 2.9 (2017-05-11) available from [fpdf.org/en/script/script93.php](http://www.fpdf.org/en/script/script93.php).
15+
16+
Note: If you find that a new version has been hosted on fpdf.org, please do not hesitate to drop me [a short note](https://github.com/codeshell/fpdm/issues) to make sure I do not miss it out.
1517

1618
# Usage
1719
## Composer (autoload)

fpdm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* V1.0 (03.11.2010) First working release *
3434
*******************************************************************************/
3535

36+
global $FPDM_FILTERS, $FPDM_REGEXPS; //needs explicit global scope, otherwise autoloading will br incomplete.
3637
$FPDM_FILTERS=array(); //holds all supported filters
3738
$FPDM_REGEXPS= array(
3839
"/Type"=>"/\/Type\s+\/(\w+)$/",

0 commit comments

Comments
 (0)