From 2140225e5c5bbee8fac8582a9dd464ab94ea30d8 Mon Sep 17 00:00:00 2001 From: Imanol Losada Date: Fri, 13 Feb 2015 15:08:19 -0500 Subject: [PATCH] Rename 'listCategories' function to buyCourseListCategories to avoid conflicts - refs #7497 --- plugin/buycourses/src/buy_course.lib.php | 2 +- plugin/buycourses/src/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/buycourses/src/buy_course.lib.php b/plugin/buycourses/src/buy_course.lib.php index b6b2aa2e60..f79949b1fb 100644 --- a/plugin/buycourses/src/buy_course.lib.php +++ b/plugin/buycourses/src/buy_course.lib.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"; diff --git a/plugin/buycourses/src/list.php b/plugin/buycourses/src/list.php index dd7334d1fe..9099c73d5f 100644 --- a/plugin/buycourses/src/list.php +++ b/plugin/buycourses/src/list.php @@ -42,7 +42,7 @@ if (isset($_SESSION['bc_success'])) { } $courseList = userCourseList(); -$categoryList = listCategories(); +$categoryList = buyCourseListCategories(); $currencyType = findCurrency(); $tpl->assign('server', $_configuration['root_web']);