Minor - format code.
Adding learnpath::getLpFromSession() function instead to call manually.
Minor - format code.
Fixing get_progress_bar() calls see BT#8904 #7342
Deprecating calls to get_db_progress()
Format code.
Fix get_scorm_time() static not static calls see #7342
Format code + fixing PHP warning.