From 2741c017cb193dc2aae94bb7538d5f17175919c7 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 4 Oct 2012 11:57:43 +0800 Subject: [PATCH] MDL-35661 local plugins do not have general settings URL --- lib/pluginlib.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/pluginlib.php b/lib/pluginlib.php index b224d6d4ff7..470fa884e37 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -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(); - } - } }