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)
Reviewed: https:/ /reviews. mahara. org/4912 /git.nzoss. org.nz/ mahara/ mahara/ commit/ 978cbe7a62acccc 2f04b960b046ce6 8a1850af1a
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.04_STABLE
commit 978cbe7a62acccc 2f04b960b046ce6 8a1850af1a
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: I807eda47e76d36 54137681bded261 64e535eb9eb b1c896ae8758965 60d59a11f0)
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 8c88e64b471db10