Commit 2cc44fba authored by Melissa Draper's avatar Melissa Draper
Browse files

Add in a popup to make sure user understands the report feature.



Bug #692784 Based on patch by Sean Brennan.

Change-Id: I9511e95547f5be9e3ee1a7e1a8d6f199678204c1
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 25978130
......@@ -120,6 +120,7 @@ $string['attachedfileaddedtofolder'] = "The attached file %s has been added to y
$string['complaint'] = 'Complaint';
$string['date'] = 'Date';
$string['notifysiteadministrator'] = 'Notify site administrator';
$string['notifysiteadministratorconfirm'] = 'Are you sure you wish to report this page as containing objectional material?';
$string['print'] = 'Print';
$string['reportobjectionablematerial'] = 'Report objectionable material';
$string['reportsent'] = 'Your report has been sent';
......
......@@ -3917,6 +3917,7 @@ function objection_form() {
$form['elements']['submit'] = array(
'type' => 'submitcancel',
'value' => array(get_string('notifysiteadministrator', 'view'), get_string('cancel')),
'confirm' => array(get_string('notifysiteadministratorconfirm', 'view')),
);
return $form;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment