File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,9 @@ function generateErrorCard(string $message, array $params = null): string
252
252
return "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='isolation:isolate' viewBox='0 0 495 195' width='495px' height='195px'>
253
253
<style>
254
254
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
255
+ a {
256
+ fill: {$ theme ["dates " ]};
257
+ }
255
258
</style>
256
259
<defs>
257
260
<clipPath id='_clipPath_OZGVUqgkTHHpPTYeqOmK3uLgktRVSwWw'>
@@ -307,11 +310,11 @@ function convertSvgToPng(string $svg): string
307
310
$ svg = trim ($ svg );
308
311
309
312
// remove style and animations
310
- $ svg = preg_replace ('/(<style>\X*? <\/style>)/m ' , '' , $ svg );
313
+ $ svg = preg_replace ('/(<style>\X*<\/style>)/m ' , '' , $ svg );
311
314
$ svg = preg_replace ('/(opacity: 0;)/m ' , 'opacity: 1; ' , $ svg );
312
315
$ svg = preg_replace ('/(animation: fadein.*?;)/m ' , 'opacity: 1; ' , $ svg );
313
316
$ svg = preg_replace ('/(animation: currentstreak.*?;)/m ' , 'font-size: 28px; ' , $ svg );
314
- $ svg = preg_replace ('/<a href \X*?>(\X*?)<\/a>/m ' , '\1 ' , $ svg );
317
+ $ svg = preg_replace ('/<a \X*?>(\X*?)<\/a>/m ' , '\1 ' , $ svg );
315
318
316
319
// create canvas
317
320
$ imagick = new Imagick ();
You can’t perform that action at this time.
0 commit comments