diff --git a/main/document/add_link.php b/main/document/add_link.php index b70b18f81f..5bd4413d06 100644 --- a/main/document/add_link.php +++ b/main/document/add_link.php @@ -1,5 +1,6 @@ -$(document).ready(function() { - $("[data-toggle=\'tooltip\']").tooltip({ - content: - function() { - return $(this).attr("title"); - } - }); -}); +echo ''; echo $form->returnForm(); diff --git a/main/document/create_document.php b/main/document/create_document.php index 325e70cbb9..d1ee328e87 100755 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -67,7 +67,7 @@ if ($is_certificate_mode) { $nameTools = get_lang('CreateDocument'); } -/* Constants and variables */ +/* Constants and variables */ $doc_table = Database::get_course_table(TABLE_DOCUMENT); $course_id = api_get_course_int_id(); $courseCode = api_get_course_id(); @@ -116,8 +116,6 @@ if (empty($document_data)) { $dir = $document_data['path']; } -/* MAIN CODE */ - // Please, do not modify this dirname formatting if (strstr($dir, '..')) { $dir = '/'; diff --git a/main/inc/lib/usergroup.lib.php b/main/inc/lib/usergroup.lib.php index d883ca8f03..de2f6c77c2 100755 --- a/main/inc/lib/usergroup.lib.php +++ b/main/inc/lib/usergroup.lib.php @@ -206,7 +206,7 @@ class UserGroup extends Model /** * Gets a list of course ids by user group * @param int $id user group id - * @param array $loadCourseData + * @param bool $loadCourseData * * @return array */