Minor - fixing PHP warnings.
Minor - format code.
Fixing qti import total question weight bug see BT#7780
Minor - PHP warning.
Adding origin parameter in api_get_cid_req() see BT#7688
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19