Rename constant (bad English name)

skala
Yannick Warnier 13 years ago
parent aa018e4621
commit f7a80950a3
  1. 2
      main/course_home/activity.php
  2. 2
      main/course_home/course_home.php
  3. 2
      main/course_home/vertical_activity.php
  4. 2
      main/inc/lib/course_home.lib.php

@ -120,7 +120,7 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
if ($theme == 'activity_big') {
$rows = 4;
}
$my_list = CourseHome::get_tools_category(TOOL_ADMIN_PLATEFORM);
$my_list = CourseHome::get_tools_category(TOOL_ADMIN_PLATFORM);
CourseHome::show_tools_category($my_list, $rows);
?>
</div>

@ -134,7 +134,7 @@ define('TOOL_AUTHORING', 'toolauthoring');
define('TOOL_INTERACTION', 'toolinteraction');
define('TOOL_COURSE_PLUGIN', 'toolcourseplugin'); //all plugins that can be enabled in courses
define('TOOL_ADMIN', 'tooladmin');
define('TOOL_ADMIN_PLATEFORM', 'tooladminplatform');
define('TOOL_ADMIN_PLATFORM', 'tooladminplatform');
//define('TOOL_ADMIN_PLATFORM_VISIBLE', 'tooladminplatformvisible');
//define('TOOL_ADMIN_PLATFORM_INVISIBLE', 'tooladminplatforminvisible');

@ -132,7 +132,7 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
<div class="courseadminview-activity-3col">
<span class="viewcaption"><?php echo get_lang('Administration'); ?></span>
<?php
$my_list = CourseHome::get_tools_category(TOOL_ADMIN_PLATEFORM);
$my_list = CourseHome::get_tools_category(TOOL_ADMIN_PLATFORM);
CourseHome::show_tools_category($my_list);
?>
</div>

@ -461,7 +461,7 @@ class CourseHome {
$result = Database::query($sql);
$col_link ="##003399";
break;
case TOOL_ADMIN_PLATEFORM:
case TOOL_ADMIN_PLATFORM:
$sql = "SELECT * FROM $course_tool_table WHERE category = 'admin' $condition_session ORDER BY id";
$result = Database::query($sql);
$col_link ="##003399";

Loading…
Cancel
Save