diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-06-01 22:37:43 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-06-01 22:37:43 +0100 |
| commit | 98265540a38087785353c71621fcc5d61354f613 (patch) | |
| tree | e67996c5b17e2113da74a856ff6dfe54a90f2309 | |
| parent | 84658595d1e73b496f54eb5ca4bc9c0a966753c7 (diff) | |
| download | webtrees-98265540a38087785353c71621fcc5d61354f613.tar.gz webtrees-98265540a38087785353c71621fcc5d61354f613.tar.bz2 webtrees-98265540a38087785353c71621fcc5d61354f613.zip | |
Fix #592 - missing namespace
| -rw-r--r-- | .php_cs | 2 | ||||
| -rw-r--r-- | mediafirewall.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ // https://github.com/FriendsOfPHP/PHP-CS-Fixer $finder = Symfony\CS\Finder\DefaultFinder::create() - ->in(__DIR__) + ->in(__DIR__.'/modules_v3') ->exclude('packages') ->exclude('vendor'); diff --git a/mediafirewall.php b/mediafirewall.php index bf34e2b525..3556698193 100644 --- a/mediafirewall.php +++ b/mediafirewall.php @@ -185,7 +185,7 @@ function embedText($im, $text, $maxsize, $color, $font, $vpos, $hpos) { // apply the text if ($useTTF) { // if imagettftext throws errors, catch them with a custom error handler - set_error_handler('imagettftextErrorHandler'); + set_error_handler('\Fisharebest\Webtrees\\imagettftextErrorHandler'); imagettftext($im, $taille, $rotation, $pos_x, $pos_y, $textcolor, 'includes/fonts/' . $font, $text); restore_error_handler(); } |
