Skip to content

Commit

Permalink
Minor - format code, fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Aug 4, 2017
1 parent 3a1c0dd commit 62e3dfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main/auth/courses.php
Expand Up @@ -138,7 +138,7 @@
strlen(trim($_POST['title_course_category'])) > 0
) {
if ($ctok == $_POST['sec_token']) {
$courses_controller->add_course_category($_POST['title_course_category']);
$courses_controller->addCourseCategory($_POST['title_course_category']);
}
}

Expand Down
6 changes: 3 additions & 3 deletions main/auth/courses_controller.php
Expand Up @@ -261,11 +261,11 @@ public function subscribe_user($course_code, $search_term, $category_code)
/**
* Create a category
* render to listing view
* @param string Category title
* @param string $title
*/
public function add_course_category($category_title)
public function addCourseCategory($title)
{
$result = $this->model->store_course_category($category_title);
$result = $this->model->store_course_category($title);
if ($result) {
Display::addFlash(
Display::return_message(get_lang('CourseCategoryStored'))
Expand Down

0 comments on commit 62e3dfa

Please sign in to comment.