Skip to content

Commit

Permalink
Show all courses with pagination in courses catalog - refs #8041
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 12, 2016
1 parent def54f2 commit 1b7ca40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/auth/courses.php
Expand Up @@ -57,12 +57,12 @@
'search_session'
);

$action = CoursesAndSessionsCatalog::is(CATALOG_SESSIONS) ? 'display_sessions' : 'display_random_courses';
$action = CoursesAndSessionsCatalog::is(CATALOG_SESSIONS) ? 'display_sessions' : 'display_courses';
if (isset($_GET['action']) && in_array($_GET['action'], $actions)) {
$action = Security::remove_XSS($_GET['action']);
}

$categoryCode = isset($_GET['category_code']) ? $_GET['category_code'] : '';
$categoryCode = isset($_GET['category_code']) ? $_GET['category_code'] : 'ALL';

$nameTools = getCourseCatalogNameTools($action);
if (empty($nameTools)) {
Expand Down

0 comments on commit 1b7ca40

Please sign in to comment.