Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(groups): Get the image sizes from the icon_sizes config #7751

Closed
wants to merge 1 commit into from

Conversation

Srokap
Copy link
Contributor

@Srokap Srokap commented Jan 4, 2015

Replaces #7265 as squashed version of the same changes.

@Srokap Srokap added this to the Elgg 1.10.0 milestone Jan 4, 2015
@Srokap Srokap mentioned this pull request Jan 4, 2015
2 tasks
foreach ($imagenames as $name) {
$img->setFilename($prefix . $name);
foreach ($imagenames as $name => $value) {
$img->setFilename($prefix . $name.'.jpg');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs an extra space around the concat... should scrutinizer not catch this?

@juho-jaakkola
Copy link
Member

What happens when missing master size is attempted to be displayed? Does Elgg assume they exist because icontime has a value?

@jdalsem
Copy link
Member

jdalsem commented Jan 5, 2015

it will revert to default as there is no file available https://github.com/Elgg/Elgg/blob/1.10/mod/groups/icon.php#L43

@juho-jaakkola
Copy link
Member

Ok, LGTM

@mrclay
Copy link
Member

mrclay commented Jan 11, 2015

Merged in 75c62f2

@mrclay mrclay closed this Jan 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants