Skip to content

Commit

Permalink
Method names must match.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Oct 14, 2023
1 parent 8511e51 commit 75fae3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions form/sectionfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class MoodleQuickForm_sectionfilemanager extends MoodleQuickForm_filemanager imp
* @param array $attributes (optional) Either a typical HTML attribute string
* or an associative array
*/
public function __construct($elementname = null, $elementlabel = null, $attributes = null) {
parent::__construct($elementname, $elementlabel, $attributes, self::$options);
public function __construct($elementName=null, $elementLabel=null, $attributes=null) {
parent::__construct($elementName, $elementLabel, $attributes, self::$options);
}

/**
Expand All @@ -54,7 +54,7 @@ public function __construct($elementname = null, $elementlabel = null, $attribut
* @param int $value Draft item id with the uploaded files.
* @return string|null Validation error message or null.
*/
public function validatesubmitvalue($value) {
public function validateSubmitValue($value) {
$failure = parent::validateSubmitValue($value);
if (!$failure) {
$course = $this->getAttribute('course');
Expand Down Expand Up @@ -204,7 +204,7 @@ private function delete_existing_image($coursecontextid, $courseid, $sectionid,
*
* @return string
*/
public function tohtml() {
public function toHtml() {
$this->init();
return parent::toHtml();
}
Expand Down

0 comments on commit 75fae3f

Please sign in to comment.