[ticket/416] Allow adding announcements module more than once

B3P-416
This commit is contained in:
Marc Alexander
2014-12-01 21:51:55 +01:00
parent 15fbf01a29
commit 1544d85369
3 changed files with 77 additions and 76 deletions

View File

@@ -162,8 +162,8 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite
switch ($type)
{
case "announcements":
$pagination_type = 'ap';
$anker = '#a';
$pagination_type = 'ap_' . $module_id;
$anker = '#a_' . $module_id;
break;
case "news":
case "news_all":
@@ -173,8 +173,8 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite
default:
// this shouldn't happen but default to announcements
$pagination_type = 'ap';
$anker = '#a';
$pagination_type = 'ap_' . $module_id;
$anker = '#a_' . $module_id;
}
// Make sure $per_page is a valid value