From 5bda2d6a67e3033b0f6593a4129fc80903101f30 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 26 Oct 2010 14:31:09 +0000 Subject: [PATCH] MDL-24479 fixed invalid strings, patch by Jenny Gray --- rating/rate.php | 4 ++-- rating/rate_ajax.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rating/rate.php b/rating/rate.php index 2a06de46e2002..e0417a4292c99 100644 --- a/rating/rate.php +++ b/rating/rate.php @@ -45,7 +45,7 @@ if (!confirm_sesskey() || $USER->id==$rateduserid) { echo $OUTPUT->header(); - echo get_string('ratepermissiondenied', 'ratings'); + echo get_string('ratepermissiondenied', 'rating'); echo $OUTPUT->footer(); die(); } @@ -69,7 +69,7 @@ if (!$pluginrateallowed || !has_capability('moodle/rating:rate',$context)) { echo $OUTPUT->header(); - echo get_string('ratepermissiondenied', 'ratings'); + echo get_string('ratepermissiondenied', 'rating'); echo $OUTPUT->footer(); die(); } diff --git a/rating/rate_ajax.php b/rating/rate_ajax.php index 5d5da2be24f7d..331529dae285b 100644 --- a/rating/rate_ajax.php +++ b/rating/rate_ajax.php @@ -54,7 +54,7 @@ if (!confirm_sesskey() || $USER->id==$rateduserid) { echo $OUTPUT->header(); - echo get_string('ratepermissiondenied', 'ratings'); + echo get_string('ratepermissiondenied', 'rating'); echo $OUTPUT->footer(); die(); } @@ -78,7 +78,7 @@ } if (!$pluginrateallowed || !has_capability('moodle/rating:rate',$context)) { - $result->error = get_string('ratepermissiondenied', 'ratings'); + $result->error = get_string('ratepermissiondenied', 'rating'); echo json_encode($result); die(); }