Merge branch 'MDL-36587-master' of git://github.com/damyon/moodle

Conflicts:
	mod/assign/locallib.php
This commit is contained in:
Dan Poltawski 2013-01-15 11:19:40 +08:00
commit 0a9b944a15

View File

@ -2540,7 +2540,7 @@ class assign {
$gradebookurl = '/grade/report/grader/index.php?id=' . $this->get_course()->id;
$links[$gradebookurl] = get_string('viewgradebook', 'assign');
}
if ($this->is_any_submission_plugin_enabled()) {
if ($this->is_any_submission_plugin_enabled() && $this->count_submissions()) {
$downloadurl = '/mod/assign/view.php?id=' . $cmid . '&action=downloadall';
$links[$downloadurl] = get_string('downloadall', 'assign');
}