Permalink
Browse files

MDL-28421 Improve admin config class

admin_settings_configmultiselect_modules to include default value
  • Loading branch information...
John Beedell
John Beedell committed Jul 22, 2011
1 parent 6884b59 commit 51f2d42f4fa1b32f72b9005a4e76aec86a74da49
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/adminlib.php
View
@@ -7863,9 +7863,10 @@ class admin_setting_configmultiselect_modules extends admin_setting_configmultis
* @param string $name setting name
* @param string $visiblename localised setting name
* @param string $description setting description
+ * @param array $defaultsetting a plain array of default module ids
*/
- public function __construct($name, $visiblename, $description) {
- parent::__construct($name, $visiblename, $description, array(), null);
+ public function __construct($name, $visiblename, $description, $defaultsetting = array()) {
+ parent::__construct($name, $visiblename, $description, $defaultsetting, null);
}
/**

0 comments on commit 51f2d42

Please sign in to comment.