Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6902f39
)
MDL-58000 badges: use large image when baking
author
Charles Fulton
<fultonc@lafayette.edu>
Tue, 25 Sep 2018 14:46:05 +0000
(10:46 -0400)
committer
Charles Fulton
<fultonc@lafayette.edu>
Tue, 25 Sep 2018 14:46:05 +0000
(10:46 -0400)
lib/badgeslib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/badgeslib.php
b/lib/badgeslib.php
index
ddbdbfb
..
9c1e698
100644
(file)
--- a/
lib/badgeslib.php
+++ b/
lib/badgeslib.php
@@
-1054,7
+1054,7
@@
function badges_bake($hash, $badgeid, $userid = 0, $pathhash = false) {
$fs = get_file_storage();
if (!$fs->file_exists($user_context->id, 'badges', 'userbadge', $badge->id, '/', $hash . '.png')) {
- if ($file = $fs->get_file($badge_context->id, 'badges', 'badgeimage', $badge->id, '/', 'f
1
.png')) {
+ if ($file = $fs->get_file($badge_context->id, 'badges', 'badgeimage', $badge->id, '/', 'f
3
.png')) {
$contents = $file->get_content();
$filehandler = new PNG_MetaDataHandler($contents);