Comment 10 for bug 1468144

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/4912
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/978cbe7a62acccc2f04b960b046ce68a1850af1a
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.04_STABLE

commit 978cbe7a62acccc2f04b960b046ce68a1850af1a
Author: Robert Lyon <email address hidden>
Date: Mon Jun 15 17:03:34 2015 +1200

Fixing the layout images being broken by locale setting

Bug 1468144

If your php site locale is one that uses comma as decimal seperator,
eg in Dutch 12,5 is the same as 12.5 in English then the layout thumbs
break.

Need to change , back to . for it to work.

The best way to do this would be to set the locale to english for the
layout creation and then set it back again but we can't be sure which
english is available so I've just done a str_replace of , to .

Change-Id: I807eda47e76d3654137681bded26164e535eb9eb
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 8c88e64b471db10b1c896ae875896560d59a11f0)