Browse Source

Fix function name (typo)

jmontoyaa 7 years ago
parent
commit
6ee67a40e5
2 changed files with 4 additions and 6 deletions
  1. 3 5
      main/lp/learnpath.class.php
  2. 1 1
      main/lp/lp_list.php

+ 3 - 5
main/lp/learnpath.class.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();
 

+ 1 - 1
main/lp/lp_list.php

@@ -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']
         ),