Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
675a4325
Commit
675a4325
authored
Oct 26, 2007
by
Nigel McNie
Browse files
Get a profile icon that has its largest edge as 100 pixels long, rather than forcibly rescaling it.
parent
c85f12ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/lib.php
View file @
675a4325
...
...
@@ -186,7 +186,7 @@ function fetch_user_image($username) {
$return
[
'f1'
]
=
base64_encode
(
$fi
);
require_once
(
'file.php'
);
$im
=
get_dataroot_image_path
(
'artefact/internal/profileicons'
,
$user
->
profileicon
,
'
100
x100'
);
$im
=
get_dataroot_image_path
(
'artefact/internal/profileicons'
,
$user
->
profileicon
,
100
);
$fi
=
file_get_contents
(
$im
);
$return
[
'f2'
]
=
base64_encode
(
$fi
);
return
$return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment