Merge pull request #494 from ilosada/7497

Rename 'listCategories' function to buyCourseListCategories
1.10.x
Yannick Warnier 10 years ago
commit f2b0c5ff17
  1. 2
      plugin/buycourses/src/buy_course.lib.php
  2. 2
      plugin/buycourses/src/list.php

@ -346,7 +346,7 @@ function checkUserBuyTransfer($parameter, $user, $type = 'COURSE')
* Returns an array with all the categories
* @return array All the categories
*/
function listCategories()
function buyCourseListCategories()
{
$tblCourseCategory = Database::get_main_table(TABLE_MAIN_CATEGORY);
$sql = "SELECT code, name FROM $tblCourseCategory";

@ -42,7 +42,7 @@ if (isset($_SESSION['bc_success'])) {
}
$courseList = userCourseList();
$categoryList = listCategories();
$categoryList = buyCourseListCategories();
$currencyType = findCurrency();
$tpl->assign('server', $_configuration['root_web']);

Loading…
Cancel
Save