git.cweiske.de
/
gamestick-pjgsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4ec8676
)
Fix png images
author
Christian Weiske
<cweiske@cweiske.de>
Sun, 4 Jun 2023 19:25:21 +0000
(21:25 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sun, 4 Jun 2023 19:25:21 +0000
(21:25 +0200)
www/activate.php
patch
|
blob
|
history
diff --git
a/www/activate.php
b/www/activate.php
index 58325fe04d81cf2af936f6079db14b9c43081dbc..452c358f2020e391849076c4f161c35db00006ec 100644
(file)
--- a/
www/activate.php
+++ b/
www/activate.php
@@
-43,6
+43,7
@@
$avatars = [
$avatarFiles = glob(__DIR__ . '/../www/resources/avatars/*.small.{jpg,png}', GLOB_BRACE);
foreach ($avatarFiles as $smallImage) {
$key = basename($smallImage, '.small.jpg');
+ $key = basename($key, '.small.png');
$avatars[$key] = '/resources/avatars/' . basename($smallImage);
}
$avatars = array_filter($avatars);