Skip to content

Commit

Permalink
MDL-35661 local plugins do not have general settings URL
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Oct 8, 2012
1 parent 562dbe4 commit 2741c01
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/pluginlib.php
Expand Up @@ -2514,12 +2514,4 @@ class plugininfo_local extends plugininfo_base {
public function get_uninstall_url() {
return new moodle_url('/admin/localplugins.php', array('delete' => $this->name, 'sesskey' => sesskey()));
}

public function get_settings_url() {
if (file_exists($this->full_path('settings.php'))) {
return new moodle_url('/admin/settings.php', array('section' => 'local_' . $this->name));
} else {
return parent::get_settings_url();
}
}
}

0 comments on commit 2741c01

Please sign in to comment.