summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-06-01 22:37:43 +0100
committerGreg Roach <fisharebest@gmail.com>2015-06-01 22:37:43 +0100
commit98265540a38087785353c71621fcc5d61354f613 (patch)
treee67996c5b17e2113da74a856ff6dfe54a90f2309
parent84658595d1e73b496f54eb5ca4bc9c0a966753c7 (diff)
downloadwebtrees-98265540a38087785353c71621fcc5d61354f613.tar.gz
webtrees-98265540a38087785353c71621fcc5d61354f613.tar.bz2
webtrees-98265540a38087785353c71621fcc5d61354f613.zip
Fix #592 - missing namespace
-rw-r--r--.php_cs2
-rw-r--r--mediafirewall.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/.php_cs b/.php_cs
index 0daf236df2..fa174c4a33 100644
--- a/.php_cs
+++ b/.php_cs
@@ -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();
}