@@ -16,7 +16,6 @@ |
||
16 | 16 | * @author Patrick Cool |
17 | 17 | * @author René Haentjens, added CSV file import (October 2004) |
18 | 18 | * @package chamilo.link |
19 | - |
|
20 | 19 | */ |
21 | 20 | |
22 | 21 | // Including libraries |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * Set accessUrlId |
43 | 43 | * |
44 | 44 | * @param integer $accessUrlId |
45 | - * @return AccessUrlRelUser |
|
45 | + * @return AccessUrlRelUserGroup |
|
46 | 46 | */ |
47 | 47 | public function setAccessUrlId($accessUrlId) |
48 | 48 | { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | return [ |
90 | 90 | ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'], |
91 | 91 | ['Undo', 'Redo'], |
92 | - ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
92 | + ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
93 | 93 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
94 | 94 | ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], |
95 | 95 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'], |
@@ -89,7 +89,7 @@ |
||
89 | 89 | return [ |
90 | 90 | ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'], |
91 | 91 | ['Undo', 'Redo'], |
92 | - ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
92 | + ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
93 | 93 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
94 | 94 | ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], |
95 | 95 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'], |
@@ -89,7 +89,7 @@ |
||
89 | 89 | return [ |
90 | 90 | ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'], |
91 | 91 | ['Undo', 'Redo'], |
92 | - ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
92 | + ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
93 | 93 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
94 | 94 | ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], |
95 | 95 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'], |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = $objExercise->read($exercise_id); |
18 | 18 | |
19 | 19 | if (!$result) { |
20 | - api_not_allowed(true); |
|
20 | + api_not_allowed(true); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $interbreadcrumb[] = array( |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | // Setting the global file that gets the general configuration, the databases, the languages, ... |
8 | 8 | require_once '../inc/global.inc.php'; |
9 | -$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
9 | +$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
10 | 10 | api_protect_course_script(true); |
11 | 11 | |
12 | 12 | // Notice for unauthorized people. |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = $objExercise->read($exercise_id); |
18 | 18 | |
19 | 19 | if (!$result) { |
20 | - api_not_allowed(true); |
|
20 | + api_not_allowed(true); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $interbreadcrumb[] = array( |
@@ -38,9 +38,9 @@ |
||
38 | 38 | api_not_allowed(true); |
39 | 39 | } |
40 | 40 | |
41 | -$courseDir = $_course['path'] . "/document"; |
|
41 | +$courseDir = $_course['path']."/document"; |
|
42 | 42 | $sys_course_path = api_get_path(SYS_COURSE_PATH); |
43 | -$base_work_dir = $sys_course_path . $courseDir; |
|
43 | +$base_work_dir = $sys_course_path.$courseDir; |
|
44 | 44 | $noPHP_SELF = true; |
45 | 45 | $max_filled_space = DocumentManager::get_course_quota(); |
46 | 46 |
@@ -39,8 +39,8 @@ |
||
39 | 39 | |
40 | 40 | use ChamiloSession as Session; |
41 | 41 | |
42 | -require_once dirname(__FILE__) . '/ldap.inc.php'; |
|
43 | -require_once dirname(__FILE__) . '/functions.inc.php'; |
|
42 | +require_once dirname(__FILE__).'/ldap.inc.php'; |
|
43 | +require_once dirname(__FILE__).'/functions.inc.php'; |
|
44 | 44 | |
45 | 45 | $ldap_user = extldap_authenticate($login, $password); |
46 | 46 | if ($ldap_user !== false) { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = $objExercise->read($exercise_id); |
18 | 18 | |
19 | 19 | if (!$result) { |
20 | - api_not_allowed(true); |
|
20 | + api_not_allowed(true); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $interbreadcrumb[] = array( |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | Display::addFlash( |
48 | 48 | Display::return_message($messageText, 'info', false) |
49 | 49 | ); |
50 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
50 | + header('Location: '.api_get_path(WEB_PATH)); |
|
51 | 51 | exit; |
52 | 52 | } |
53 | 53 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | Display::addFlash( |
75 | 75 | Display::return_message($messageText, 'error', false) |
76 | 76 | ); |
77 | - header('Location: ' . api_get_self()); |
|
77 | + header('Location: '.api_get_self()); |
|
78 | 78 | exit; |
79 | 79 | } |
80 | 80 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | Display::addFlash( |
95 | 95 | Display::return_message($messageText, 'info', false) |
96 | 96 | ); |
97 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
97 | + header('Location: '.api_get_path(WEB_PATH)); |
|
98 | 98 | exit; |
99 | 99 | } |
100 | 100 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | Display::addFlash( |
103 | 103 | Display::return_message(get_lang('CouldNotResetPassword'), 'info', false) |
104 | 104 | ); |
105 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
105 | + header('Location: '.api_get_path(WEB_PATH)); |
|
106 | 106 | exit; |
107 | 107 | } |
108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | exit; |
122 | 122 | } |
123 | 123 | |
124 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
124 | + header('Location: '.api_get_path(WEB_PATH)); |
|
125 | 125 | exit; |
126 | 126 | } |
127 | 127 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | Display::addFlash( |
139 | 139 | Display::return_message($messageText, 'info', false) |
140 | 140 | ); |
141 | - header('Location: ' . api_get_path(WEB_PATH)); |
|
141 | + header('Location: '.api_get_path(WEB_PATH)); |
|
142 | 142 | exit; |
143 | 143 | } |
144 | 144 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html |
24 | 24 | * @author Laurent Opprecht <[email protected]> |
25 | 25 | */ |
26 | -class <?php echo $prefix . $class_name ?> |
|
26 | +class <?php echo $prefix.$class_name ?> |
|
27 | 27 | |
28 | 28 | { |
29 | 29 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | return self::store()->create_object($data); |
52 | 52 | } |
53 | 53 | |
54 | -<?php foreach($fields as $field){?> |
|
54 | +<?php foreach ($fields as $field) {?> |
|
55 | 55 | public $<?php echo $field->name; ?> = <?php echo $field->def ? $field->def : 'null'; ?>; |
56 | 56 | <?php }?> |
57 | 57 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html |
74 | 74 | * @author Laurent Opprecht <[email protected]> |
75 | 75 | */ |
76 | -class <?php echo $prefix . $class_name ?>Store extends Store |
|
76 | +class <?php echo $prefix.$class_name ?>Store extends Store |
|
77 | 77 | { |
78 | 78 | |
79 | 79 | /** |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | public function __construct() |
94 | 94 | { |
95 | - parent::__construct('<?php echo $table_name;?>', '<?php echo $class_name;?>', '<?php echo $id_name;?>'); |
|
95 | + parent::__construct('<?php echo $table_name; ?>', '<?php echo $class_name; ?>', '<?php echo $id_name; ?>'); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | return parent::create_object($data); |
116 | 116 | } |
117 | -<?php foreach($keys as $key){?> |
|
117 | +<?php foreach ($keys as $key) {?> |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * |