diff --git a/main/wiki/index.php b/main/wiki/index.php index 95b786b161..e4432305e8 100755 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -12,11 +12,6 @@ // name of the language file that needs to be included $language_file = 'wiki'; -// security -if(isset($_GET['id_session'])) { - $_SESSION['id_session'] = intval($_GET['id_session']); -} - // including the global dokeos file require_once '../inc/global.inc.php'; @@ -235,7 +230,7 @@ if ($_GET['view']) if ($_GET['view']<$last_row['id']) { - $message= '
'.get_lang('NoAreSeeingTheLastVersion').'
'.get_lang("Version").' ('.$current_row['version'].' / '.$last_row['version'].')
'.get_lang("ConvertToLastVersion").': '.get_lang("Restore").'
'; + $message= '
'.get_lang('NoAreSeeingTheLastVersion').'
'.get_lang("Version").' ('.$current_row['version'].' / '.$last_row['version'].')
'.get_lang("ConvertToLastVersion").': '.get_lang("Restore").'
'; Display::display_warning_message($message,false); } @@ -321,7 +316,7 @@ if ($_GET['view']) } else { - Display::display_confirmation_message(restore_wikipage($current_row['page_id'], $current_row['reflink'], $current_row['title'], $current_row['content'], $current_row['group_id'], $current_row['assignment'], $current_row['progress'], $current_row['version'], $last_row['version'], $current_row['linksto']).': '.api_htmlentities($last_row['title']).'',false); + Display::display_confirmation_message(restore_wikipage($current_row['page_id'], $current_row['reflink'], $current_row['title'], $current_row['content'], $current_row['group_id'], $current_row['assignment'], $current_row['progress'], $current_row['version'], $last_row['version'], $current_row['linksto']).': '.api_htmlentities($last_row['title']).'',false); } } } @@ -367,10 +362,10 @@ echo ''; echo ''; echo ''; ///menu home - echo '