Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d90912
)
rating MDL-24558 added better handling for when there are no ratings submitted
author
Andrew Davis
<andrew@affinitysoftware.net>
Thu, 7 Oct 2010 08:25:59 +0000
(08:25 +0000)
committer
Andrew Davis
<andrew@affinitysoftware.net>
Thu, 7 Oct 2010 08:25:59 +0000
(08:25 +0000)
rating/index.php
patch
|
blob
|
blame
|
history
diff --git
a/rating/index.php
b/rating/index.php
index
eb02ea5
..
774509f
100644
(file)
--- a/
rating/index.php
+++ b/
rating/index.php
@@
-79,7
+79,8
@@
$ratingoptions->sort = $sqlsort;
$rm = new rating_manager();
$ratings = $rm->get_all_ratings_for_item($ratingoptions);
if (!$ratings) {
- print_error('noresult', 'forum', '', format_string($itemid));
+ $msg = get_string('noratings','rating');
+ echo html_writer::tag('div', $msg, array('class'=>'mdl-align'));
} else {
$sortargs = "contextid=$contextid&itemid=$itemid&scaleid=$scaleid";
if($popup) {