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') { if ($theme == 'activity_big') {
$rows = 4; $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); CourseHome::show_tools_category($my_list, $rows);
?> ?>
</div> </div>

@ -134,7 +134,7 @@ define('TOOL_AUTHORING', 'toolauthoring');
define('TOOL_INTERACTION', 'toolinteraction'); define('TOOL_INTERACTION', 'toolinteraction');
define('TOOL_COURSE_PLUGIN', 'toolcourseplugin'); //all plugins that can be enabled in courses define('TOOL_COURSE_PLUGIN', 'toolcourseplugin'); //all plugins that can be enabled in courses
define('TOOL_ADMIN', 'tooladmin'); define('TOOL_ADMIN', 'tooladmin');
define('TOOL_ADMIN_PLATEFORM', 'tooladminplatform'); define('TOOL_ADMIN_PLATFORM', 'tooladminplatform');
//define('TOOL_ADMIN_PLATFORM_VISIBLE', 'tooladminplatformvisible'); //define('TOOL_ADMIN_PLATFORM_VISIBLE', 'tooladminplatformvisible');
//define('TOOL_ADMIN_PLATFORM_INVISIBLE', 'tooladminplatforminvisible'); //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"> <div class="courseadminview-activity-3col">
<span class="viewcaption"><?php echo get_lang('Administration'); ?></span> <span class="viewcaption"><?php echo get_lang('Administration'); ?></span>
<?php <?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); CourseHome::show_tools_category($my_list);
?> ?>
</div> </div>

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

Loading…
Cancel
Save