mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Added currency retrieval from database bug 3838
This commit is contained in:
parent
440dcd3123
commit
19374e76a5
1 changed files with 4 additions and 4 deletions
|
@ -1240,7 +1240,7 @@ function print_category_info($category, $depth) {
|
||||||
echo "\n\n".'<table border="0" cellpadding="3" cellspacing="0" width="100%">';
|
echo "\n\n".'<table border="0" cellpadding="3" cellspacing="0" width="100%">';
|
||||||
|
|
||||||
if ($CFG->frontpage == FRONTPAGECOURSELIST) {
|
if ($CFG->frontpage == FRONTPAGECOURSELIST) {
|
||||||
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.guest,c.cost');
|
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.guest,c.cost,c.currency');
|
||||||
|
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
|
|
||||||
|
@ -1319,14 +1319,14 @@ function print_courses($category, $width="100%") {
|
||||||
$categories = get_categories(0); // Parent = 0 ie top-level categories only
|
$categories = get_categories(0); // Parent = 0 ie top-level categories only
|
||||||
if (count($categories) == 1) {
|
if (count($categories) == 1) {
|
||||||
$category = array_shift($categories);
|
$category = array_shift($categories);
|
||||||
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost');
|
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency');
|
||||||
} else {
|
} else {
|
||||||
$courses = get_courses('all', 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost');
|
$courses = get_courses('all', 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency');
|
||||||
}
|
}
|
||||||
unset($categories);
|
unset($categories);
|
||||||
} else {
|
} else {
|
||||||
$categories = get_categories($category->id); // sub categories
|
$categories = get_categories($category->id); // sub categories
|
||||||
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost');
|
$courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($courses) {
|
if ($courses) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue