aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-07 18:28:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-07 18:28:06 +0000
commit388f208e3f4a7d0475ead27788ee873bc988f187 (patch)
tree1d7000d18915c6e9cdfc878b22d837835f4f04e5
parent3d631a9ee48fbff1741525f7ad9e9a530854d03b (diff)
Unneeded text now cache better.
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
-rw-r--r--templates/web/default/admin/report_edit.html1
-rw-r--r--templates/web/zurich/admin/report_edit.html1
3 files changed, 0 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 4fa9992f2..2ade99450 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -1339,8 +1339,6 @@ sub rotate_photo : Private {
my $fileid = sha1_hex($photo);
$file = file( $c->config->{UPLOAD_DIR}, "$fileid.jpeg" );
- $c->stash->{rotated} = 1;
-
my $fh = $file->open('w');
print $fh $photo;
close $fh;
diff --git a/templates/web/default/admin/report_edit.html b/templates/web/default/admin/report_edit.html
index cd5072d00..b76d1717a 100644
--- a/templates/web/default/admin/report_edit.html
+++ b/templates/web/default/admin/report_edit.html
@@ -54,7 +54,6 @@
[% photo = problem.get_photo_params %]
<li><img alt="" height="[% photo.height %]" width="[% photo.width %]" src="[% c.cobrand.base_url %][% photo.url %]">
<br>
-[% IF rotated %]Photo may be cached for a while.<br>[% END %]
<input type="submit" name="rotate_photo" value="[% loc('Rotate Left') %]">
<input type="submit" name="rotate_photo" value="[% loc('Rotate Right') %]">
<br>
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 0e716ef97..e2e67e9e6 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -59,7 +59,6 @@
[% photo = problem.get_photo_params %]
<li><img alt="" src="[% c.cobrand.base_url %][% photo.url %]">
<br>
-[% IF rotated %]Photo may be cached for a while.<br>[% END %]
<input type="submit" name="rotate_photo" value="[% loc('Rotate Left') %]">
<input type="submit" name="rotate_photo" value="[% loc('Rotate Right') %]">
<br>