Merge branch 'master_MDL-45210' of git://github.com/totara/moodle

This commit is contained in:
Marina Glancy
2014-04-28 10:46:04 +08:00
+2 -1
View File
@@ -62,6 +62,7 @@ class plagiarism extends base {
* @return moodle_url
*/
public static function get_manage_url() {
return new moodle_url('/admin/plagiarism.php');
global $CFG;
return !empty($CFG->enableplagiarism) ? new moodle_url('/admin/plagiarism.php') : null;
}
}