Minor - Format code

remotes/angel/1.11.x
Julio 8 years ago
parent 61789b9424
commit 3f42b3d572
  1. 2
      main/inc/ajax/course_home.ajax.php
  2. 6
      main/lp/learnpath.class.php

@ -33,7 +33,7 @@ switch ($action) {
null,
true
);
$na_image = str_replace('.png', '_na.png', $tool_image);
$na_image = str_replace('.png', '_na.png', $tool_image);
}
if (isset($tool_info['custom_icon']) && !empty($tool_info['custom_icon'])) {

@ -3882,13 +3882,13 @@ class learnpath
$course_id = api_get_course_int_id();
$lp_table = Database :: get_course_table(TABLE_LP_MAIN);
$sql = "SELECT * FROM $lp_table
WHERE c_id = ".$course_id."
WHERE c_id = $course_id
ORDER BY display_order";
$res = Database::query($sql);
if ($res === false)
return false;
$lps = array ();
$lp_order = array ();
$lp_order = array();
$num = Database :: num_rows($res);
// First check the order is correct, globally (might be wrong because
// of versions < 1.8.4)
@ -3929,7 +3929,7 @@ class learnpath
$course_id = api_get_course_int_id();
$lp_table = Database :: get_course_table(TABLE_LP_MAIN);
$sql = "SELECT * FROM $lp_table
WHERE c_id = ".$course_id."
WHERE c_id = $course_id
ORDER BY display_order";
$res = Database::query($sql);
if ($res === false) {

Loading…
Cancel
Save