Skip to content

Commit

Permalink
Merge branch 'patch-1' into fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Jan 26, 2025
2 parents bf9f99f + 1029d4f commit 744c9ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/.gitattributes export-ignore
/tests export-ignore
/scripts export-ignore
/examples export-ignore
/phpstan.neon.dist export-ignore

1 comment on commit 744c9ff

@remicollet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is probably something wrong here
as code refer to examples/images/_blank.png which is removed from distribution


if (!defined('K_PATH_IMAGES')) {
        $tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', K_PATH_MAIN.'images/', '/usr/share/doc/php-tcpdf/examples/images/', '/usr/share/doc/tcpdf/examples/images/', '/usr/share/
doc/php/tcpdf/examples/images/', '/var/www/tcpdf/images/', '/var/www/html/tcpdf/images/', '/usr/local/apache2/htdocs/tcpdf/images/', K_PATH_MAIN);
        foreach ($tcpdf_images_dirs as $tcpdf_images_path) {
                if (@file_exists($tcpdf_images_path)) {
                        define ('K_PATH_IMAGES', $tcpdf_images_path);
                        break;
                }
        }
}
...
if (!defined('K_BLANK_IMAGE')) {
        define ('K_BLANK_IMAGE', '_blank.png');
}

Please sign in to comment.