Julio Montoya 9 years ago
parent
commit
a0658d9f95
1 changed files with 2 additions and 3 deletions
  1. 2 3
      main/admin/index.php

+ 2 - 3
main/admin/index.php

@@ -278,8 +278,9 @@ if (file_exists($sessionsBlockExtraFile)) {
 if (api_is_platform_admin()) {
     $blocks['sessions']['editable'] = true;
 }
+$sessionPath = api_get_path(WEB_CODE_PATH).'session/';
 
-$search_form = ' <form method="GET" class="form-inline" action="session_list.php">
+$search_form = ' <form method="GET" class="form-inline" action="'.$sessionPath.'session_list.php">
                     <div class="form-group">
                         <input class="form-control" type="text" name="keyword" value="">
                         <button class="btn btn-default" type="submit">
@@ -289,8 +290,6 @@ $search_form = ' <form method="GET" class="form-inline" action="session_list.php
                 </form>';
 $blocks['sessions']['search_form'] = $search_form;
 $items = array();
-$sessionPath = api_get_path(WEB_CODE_PATH).'session/';
-
 $items[] = array('url' => $sessionPath.'session_list.php', 'label' => get_lang('ListSession'));
 $items[] = array('url' => $sessionPath.'session_add.php', 'label' => get_lang('AddSession'));
 $items[] = array('url' => $sessionPath.'session_category_list.php', 'label' => get_lang('ListSessionCategory'));