[svn r17656] minor show search icon, and link to up or down icon in foruncategory.php see 3443

skala
Carlos Vargas 16 years ago
parent c0b7919947
commit 84c193c761
  1. 4
      main/forum/forumfunction.inc.php
  2. 4
      main/forum/viewforum.php

@ -843,13 +843,13 @@ function display_up_down_icon($content, $id, $list) {
}
}
if ($position>1) {
$return_value='<a href="'.api_get_self().'?'.api_get_cidreq().'&action=move&amp;direction=up&amp;content='.$content.'&amp;id='.$id.'" title="'.get_lang('MoveUp').'"><img src="../img/up.gif" /></a>';
$return_value='<a href="'.api_get_self().'?'.api_get_cidreq().'&action=move&amp;direction=up&amp;content='.$content.'&amp;forumcategory='.Security::remove_XSS($_GET['forumcategory']).'&amp;id='.$id.'" title="'.get_lang('MoveUp').'"><img src="../img/up.gif" /></a>';
} else {
$return_value='<img src="../img/up_na.gif" />';
}
if ($position<$total_items) {
$return_value.='<a href="'.api_get_self().'?'.api_get_cidreq().'&action=move&amp;direction=down&amp;content='.$content.'&amp;id='.$id.'" title="'.get_lang('MoveDown').'" ><img src="../img/down.gif" /></a>';
$return_value.='<a href="'.api_get_self().'?'.api_get_cidreq().'&action=move&amp;direction=down&amp;content='.$content.'&amp;forumcategory='.Security::remove_XSS($_GET['forumcategory']).'&amp;id='.$id.'" title="'.get_lang('MoveDown').'" ><img src="../img/down.gif" /></a>';
} else {
$return_value.='<img src="../img/down_na.gif" />';

@ -290,7 +290,9 @@ if (!empty($message)) {
-----------------------------------------------------------
*/
echo '<div class="actions">';
//echo '<span style="float:right;">'.search_link().'</span>';
if (empty($_SESSION['toolgroup'])){
echo '<span style="float:right;">'.search_link().'</span>';
}
// The link should appear when
// 1. the course admin is here
// 2. the course member is here and new threads are allowed

Loading…
Cancel
Save