Fix function name (typo)

pull/2487/head
jmontoyaa 8 years ago
parent 3327cd4912
commit 6ee67a40e5
  1. 8
      main/lp/learnpath.class.php
  2. 2
      main/lp/lp_list.php

@ -4381,8 +4381,7 @@ class learnpath
public static function categoryIsVisibleForStudent(
CLpCategory $category,
User $user
)
{
) {
$isAllowedToEdit = api_is_allowed_to_edit(null, true);
if ($isAllowedToEdit) {
@ -4408,11 +4407,10 @@ class learnpath
* @param int $courseId
* @return bool
*/
public static function categoryIsPusblished(
public static function categoryIsPublished(
CLpCategory $category,
$courseId
)
{
) {
$link = self::getCategoryLinkForTool($category->getId());
$em = Database::getManager();

@ -868,7 +868,7 @@ foreach ($categories as $item) {
$item->getId(),
$current_session
),
'category_is_published' => learnpath::categoryIsPusblished(
'category_is_published' => learnpath::categoryIsPublished(
$item,
$courseInfo['real_id']
),

Loading…
Cancel
Save