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

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

Loading…
Cancel
Save