diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index 60d2d2918a..5d9b5bfcfc 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -4028,6 +4028,7 @@ class DocumentManager } /** + * Sets * @param string $file ($document_data['path']) * @param string $file_url_sys * @return string @@ -4072,7 +4073,7 @@ class DocumentManager } /** - * Erase temp nanogons' audio, image edit + * Erase temp nanogong audio. */ public static function removeGeneratedAudioTempFile() { diff --git a/main/inc/lib/uri.class.php b/main/inc/lib/uri.class.php index 21f38c56d6..e75b5e6636 100755 --- a/main/inc/lib/uri.class.php +++ b/main/inc/lib/uri.class.php @@ -2,13 +2,13 @@ /** * Utility functions to manage uris/urls. - * + * * @license see /license.txt * @author Laurent Opprecht for the Univesity of Geneva */ class Uri { - + public static function chamilo() { return 'http://chamilo.org/'; @@ -20,21 +20,20 @@ class Uri public static function www() { static $result = false; - if (empty($result)) - { + if (empty($result)) { $result = api_get_path(WEB_PATH); } return $result; } - + public static function here($params = array(), $html = true) { $protocol = Request::server()->server_protocol(); $protocol = stripos($protocol, 'https') !== false ? 'https' : 'http'; - + $host = Request::server()->server_name(); $host = $host ? $host : Request::server()->server_addr(); - + $here = Request::server()->request_uri(); $here = explode('?', $here); $here = reset($here); @@ -45,10 +44,10 @@ class Uri /** * Returns a full url from local/absolute path and parameters. * Append the root as required for relative urls. - * + * * @param string $path * @param array $params - * @return string + * @return string */ public static function url($path = '', $params = array(), $html = true) { @@ -69,7 +68,7 @@ class Uri /** * Format url parameters - * + * * @param array $params * @return string */ @@ -86,11 +85,11 @@ class Uri /** * Returns the course parameters. If null default to the current user parameters. - * + * * @param string $course_code * @param string|int $session_id * @param string|int $group_id - * @return type + * @return type */ public static function course_params($course_code = null, $session_id = null, $group_id = null) { @@ -102,4 +101,4 @@ class Uri return array('cidReq' => $course_code, 'id_session' => $session_id, 'gidReq' => $group_id); } -} \ No newline at end of file +} diff --git a/main/tracking/courseLog.php b/main/tracking/courseLog.php index 390701c86e..1a428e202d 100755 --- a/main/tracking/courseLog.php +++ b/main/tracking/courseLog.php @@ -108,10 +108,17 @@ $js = "