aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2013-08-30 19:31:24 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2013-08-30 19:34:27 +0100
commit485ac883cd1e119aeca2cbe77e5f02828496c28d (patch)
tree5b078a1e0fe7fc7f0215ed63c124ecc01e328ed0
parent75dbb51498469176ba81b06c20e30d89466b3037 (diff)
Changed hardcoded URL in Problem.pm to be using variable from general.yml instead.
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Problem.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
index 07848d782..97d457297 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -464,7 +464,8 @@ sub send_reports {
send_fail_count => { '>', 0 }
} );
while (my $row = $unsent->next) {
- $sending_errors .= "* http://www.fixmystreet.com/report/" . $row->id . ", failed "
+ my $base_url = mySociety::Config::get('BASE_URL');
+ $sending_errors .= "* " . $base_url . "/report/" . $row->id . ", failed "
. $row->send_fail_count . " times, last at " . $row->send_fail_timestamp
. ", reason " . $row->send_fail_reason . "\n";
}