Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replacing feedback email after submit report with site email

  • Loading branch information...
commit 4ca360db6c56007c5a98fc1b6df3829c2f847ae8 1 parent 595531f
@srutto srutto authored
View
10 application/controllers/reports.php
@@ -572,7 +572,7 @@ public function view($id = FALSE)
// Notify Admin Of New Comment
// HT: Ensure only valid comments not spam are sent out
- // as notifications to the administrator
+ // as notifications to the administrator
if ($comment_spam == 0) {
$send = notifications::notify_admins(
"[".Kohana::config('settings.site_name')."] ".
@@ -581,9 +581,9 @@ public function view($id = FALSE)
."\n\n'".utf8::strtoupper($incident->incident_title)."'"
."\n".url::site('reports/view/'.$id)
);
- }
- // Redirect
- url::redirect('reports/view/'.$id);
+ }
+ // Redirect
+ url::redirect('reports/view/'.$id);
}
else
@@ -725,6 +725,8 @@ public function thanks()
{
$this->template->header->this_page = 'reports_submit';
$this->template->content = new View('reports/submit_thanks');
+ // Get Site Email
+ $this->template->content->report_email = Kohana::config('settings.site_email');
}
/**
View
2  themes/default/views/reports/submit_thanks.php
@@ -9,7 +9,7 @@
<div class="thanks_msg"><a href="<?php echo
url::site().'reports' ?>"><?php echo Kohana::lang('ui_main.reports_return');?></a><br /><br />
<a href="<?php echo url::site('reports/submit'); ?>"><?php echo Kohana::lang('ui_main.reports_submit_new');?></a><br /><br />
- <?php echo Kohana::lang('ui_main.feedback_reports');?><br /><br />
+ <?php echo Kohana::lang('ui_main.feedback_reports');?><a href="mailto:<?php echo $report_email?>"><?php echo $report_email?></a><br /><br />
</div>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.