Fix function name.

1.10.x
Julio Montoya 10 years ago
parent 3263daf660
commit b3b5535951
  1. 4
      main/gradebook/lib/be/category.class.php
  2. 4
      main/gradebook/lib/fe/catform.class.php

@ -269,7 +269,7 @@ class Category implements GradebookItem
* Get the generate_certificates value
* @return int
*/
public function getGenerateCetificates()
public function getGenerateCertificates()
{
return $this->generateCertificates;
}
@ -1782,7 +1782,7 @@ class Category implements GradebookItem
/** @var Category $category */
$category = $cats_course[0];
if (!$category->getGenerateCetificates()) {
if (!$category->getGenerateCertificates()) {
$skill = new Skill();
$skill->add_skill_to_user(

@ -176,7 +176,7 @@ class CatForm extends FormValidator
'weight' => $this->category_object->get_weight(),
'visible' => $this->category_object->is_visible(),
'certif_min_score' => $this->category_object->get_certificate_min_score(),
'generate_certificates' => $this->category_object->getGenerateCetificates()
'generate_certificates' => $this->category_object->getGenerateCertificates()
)
);
$this->addElement('hidden', 'hid_id', $this->category_object->get_id());
@ -357,7 +357,7 @@ class CatForm extends FormValidator
$generateCertificatesParams = array();
if ($this->category_object->getGenerateCetificates()) {
if ($this->category_object->getGenerateCertificates()) {
$generateCertificatesParams['checked'] = 'checked';
}

Loading…
Cancel
Save