diff options
-rw-r--r-- | t/i18n.t | 12 | ||||
-rw-r--r-- | templates/web/default/admin/report_edit.html | 2 |
2 files changed, 13 insertions, 1 deletions
@@ -106,4 +106,16 @@ sub utf8_diag { \@NO_sorted, "sort strcoll correctly with use locale 'nb_NO'" ); } +subtest "check that code is only called once by in_gb_locale" => sub { + + my $scalar_counter = 0; + my $out = mySociety::Locale::in_gb_locale { $scalar_counter++ }; + is $scalar_counter, 1, "code called once in scalar context"; + + my $list_counter = 0; + my @out = mySociety::Locale::in_gb_locale { $list_counter++ }; + is $list_counter, 1, "code called once in list context"; + +}; + done_testing(); diff --git a/templates/web/default/admin/report_edit.html b/templates/web/default/admin/report_edit.html index ef083ca7e..9c38b014e 100644 --- a/templates/web/default/admin/report_edit.html +++ b/templates/web/default/admin/report_edit.html @@ -38,7 +38,7 @@ [% IF problem.photo %] [% photo = problem.get_photo_params %] -<li><img alt="" height="[% photo.height %]" width="[% photo.width %]" src="[% photo.url %]"> +<li><img alt="" height="[% photo.height %]" width="[% photo.width %]" src="[% c.cobrand.base_url %][% photo.url %]"> <input type="checkbox" id="remove_photo" name="remove_photo" value="1"> <label for="remove_photo">[% loc("Remove photo (can't be undone!)") %]</label></li> [% END %] |