Commit 30f6e9de authored by Nigel's avatar Nigel
Browse files

Make sure we retrieve the 'no user profile images' picture in the correct...

Make sure we retrieve the 'no user profile images' picture in the correct size, once it has been created.
parent 6b5d2b32
......@@ -74,9 +74,12 @@ switch ($type) {
$directory = get_config('dataroot') . 'artefact/internal/profileicons/no_userphoto/' . get_config('theme') . '/originals/0/';
check_dir_exists($directory);
copy($nouserphotopic, $directory . '0');
header('Content-type: ' . 'image/png');
readfile($directory . '0');
exit;
// Now we can try and get the image in the correct size
if ($path = get_dataroot_image_path('artefact/internal/profileicons/no_userphoto/' . get_config('theme'), 0, $size)) {
header('Content-type: ' . 'image/png');
readfile($path);
exit;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment