Skip to content

Commit

Permalink
MDL-45210: Fix broken link when plagiarism plugins are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncoggins committed Apr 22, 2014
1 parent a046134 commit be39d92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/classes/plugininfo/plagiarism.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function is_uninstall_allowed() {
* @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;
}
}

0 comments on commit be39d92

Please sign in to comment.