@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | array(), |
357 | 357 | null, |
358 | 358 | ICON_SIZE_MEDIUM |
359 | - ) . ' ' . $tool_name . '</a>'; |
|
359 | + ).' '.$tool_name.'</a>'; |
|
360 | 360 | |
361 | 361 | // This part displays the links to hide or remove a tool. |
362 | 362 | // These links are only visible by the course manager. |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | $session_id = api_get_session_id(); |
684 | 684 | $is_platform_admin = api_is_platform_admin(); |
685 | 685 | |
686 | - if ($session_id == 0 ) { |
|
686 | + if ($session_id == 0) { |
|
687 | 687 | $is_allowed_to_edit = api_is_allowed_to_edit(null, true) && api_is_course_admin(); |
688 | 688 | } else { |
689 | 689 | $is_allowed_to_edit = api_is_allowed_to_edit(null, true) && !api_is_coach(); |
@@ -1061,8 +1061,8 @@ discard block |
||
1061 | 1061 | |
1062 | 1062 | $toolName = api_underscore_to_camel_case($toolName); |
1063 | 1063 | |
1064 | - if (isset($GLOBALS['Tool' . $toolName])) { |
|
1065 | - return get_lang('Tool' . $toolName); |
|
1064 | + if (isset($GLOBALS['Tool'.$toolName])) { |
|
1065 | + return get_lang('Tool'.$toolName); |
|
1066 | 1066 | } |
1067 | 1067 | |
1068 | 1068 | return $toolName; |
@@ -1266,7 +1266,7 @@ discard block |
||
1266 | 1266 | return array(); |
1267 | 1267 | } |
1268 | 1268 | |
1269 | - $table = Database::get_course_table(TABLE_TOOL_LIST); |
|
1269 | + $table = Database::get_course_table(TABLE_TOOL_LIST); |
|
1270 | 1270 | $sql = "SELECT * FROM $table |
1271 | 1271 | WHERE category in ('authoring','interaction') |
1272 | 1272 | AND c_id = $courseId |
@@ -1372,7 +1372,7 @@ discard block |
||
1372 | 1372 | $temp = new Image($path); |
1373 | 1373 | $r = $temp->convert2bw(); |
1374 | 1374 | $ext = pathinfo($path, PATHINFO_EXTENSION); |
1375 | - $bwPath = substr($path,0,-(strlen($ext)+1)) . '_na.' . $ext; |
|
1375 | + $bwPath = substr($path, 0, -(strlen($ext) + 1)).'_na.'.$ext; |
|
1376 | 1376 | |
1377 | 1377 | if ($r === false) { |
1378 | 1378 | error_log('Conversion to B&W of '.$path.' failed in '.__FILE__.' at line '.__LINE__); |