Fix wrong URL see #7783

1.10.x
Julio Montoya 9 years ago
parent ab6b63d6f1
commit ce522a76ba
  1. 4
      main/user/subscribe_user.php
  2. 2
      main/user/user.php

@ -93,7 +93,6 @@ if (isset($_REQUEST['register'])) {
unset($_SESSION['session_user_name']);
}
header('Location:'.api_get_path(WEB_CODE_PATH).'user/user.php?'.api_get_cidreq().'&type='.$type);
exit;
}
@ -192,7 +191,7 @@ $table = new SortableTable(
($is_western_name_order xor $sort_by_first_name) ? 3 : 2
);
$parameters['keyword'] = $keyword;
$parameters['type'] = COURSEMANAGER;
$parameters['type'] = $type;
$table->set_additional_parameters($parameters);
$col = 0;
$table->set_header($col ++, '', false);
@ -220,7 +219,6 @@ if (!empty($_POST['keyword'])) {
echo '<br/>'.get_lang('SearchResultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
}
Display :: display_header($tool_name, "User");
// Build search-form

@ -935,7 +935,7 @@ if (api_is_allowed_to_edit(null, true)) {
switch ($type) {
case STUDENT:
$selectedTab = 1;
$url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().'';
$url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().'&type='.STUDENT;
break;
case COURSEMANAGER:
$selectedTab = 2;

Loading…
Cancel
Save