Add missing api_get_cidreq()

pull/2487/head
jmontoyaa 8 years ago
parent 0b887ad528
commit 951b90423f
  1. 28
      main/wiki/wiki.inc.php

@ -263,9 +263,9 @@ class Wiki
strtolower(str_replace(' ', '_', $link)) strtolower(str_replace(' ', '_', $link))
)) { )) {
$link = api_html_entity_decode($link); $link = api_html_entity_decode($link);
$input_array[$key] = '<a href="'.api_get_path(WEB_PATH).'main/wiki/index.php?'.api_get_cidreq().'&action=addnew&amp;title='.Security::remove_XSS($link).'&group_id='.$groupId.'" class="new_wiki_link">'.$title.'</a>'; $input_array[$key] = '<a href="'.api_get_path(WEB_PATH).'main/wiki/index.php?'.api_get_cidreq().'&action=addnew&title='.Security::remove_XSS($link).'&group_id='.$groupId.'" class="new_wiki_link">'.$title.'</a>';
} else { } else {
$input_array[$key] = '<a href="'.api_get_path(WEB_PATH).'main/wiki/index.php?'.api_get_cidreq().'&action=showpage&amp;title='.urlencode(strtolower(str_replace(' ', '_', $link))).'&group_id='.$groupId.'" class="wiki_link">'.$title.'</a>'; $input_array[$key] = '<a href="'.api_get_path(WEB_PATH).'main/wiki/index.php?'.api_get_cidreq().'&action=showpage&title='.urlencode(strtolower(str_replace(' ', '_', $link))).'&group_id='.$groupId.'" class="wiki_link">'.$title.'</a>';
} }
unset($input_array[$key - 1]); unset($input_array[$key - 1]);
unset($input_array[$key + 1]); unset($input_array[$key + 1]);
@ -689,7 +689,7 @@ class Wiki
$group_id = intval($_GET['group_id']); $group_id = intval($_GET['group_id']);
if (!self::checktitle($var)) { if (!self::checktitle($var)) {
return get_lang('WikiPageTitleExist'). return get_lang('WikiPageTitleExist').
'<a href="index.php?action=edit&amp;title='.$var.'&group_id='.$group_id.'">'. '<a href="index.php?action=edit&title='.$var.'&group_id='.$group_id.'">'.
$values['title'].'</a>'; $values['title'].'</a>';
} else { } else {
$dtime = api_get_utc_datetime(); $dtime = api_get_utc_datetime();
@ -4147,7 +4147,7 @@ class Wiki
} }
} }
echo '<span style="float:right">'; echo '<span style="float:right">';
echo '<a href="index.php?action=discuss&amp;actionpage='.$hide_show_disc.'&amp;title='.api_htmlentities( echo '<a href="index.php?action=discuss&actionpage='.$hide_show_disc.'&title='.api_htmlentities(
urlencode($page) urlencode($page)
).'">'.$visibility_disc.'</a>'; ).'">'.$visibility_disc.'</a>';
echo '</span>'; echo '</span>';
@ -4200,7 +4200,7 @@ class Wiki
$lock_unlock_notify_disc = 'locknotifydisc'; $lock_unlock_notify_disc = 'locknotifydisc';
} }
echo '<span style="float:right">'; echo '<span style="float:right">';
echo '<a href="index.php?action=discuss&amp;actionpage='.$lock_unlock_notify_disc.'&amp;title='.api_htmlentities( echo '<a href="index.php?action=discuss&actionpage='.$lock_unlock_notify_disc.'&title='.api_htmlentities(
urlencode($page) urlencode($page)
).'">'.$notify_disc.'</a>'; ).'">'.$notify_disc.'</a>';
echo '</span>'; echo '</span>';
@ -4722,7 +4722,7 @@ class Wiki
} }
echo '<div class="actions"><span style="float: right;">'; echo '<div class="actions"><span style="float: right;">';
echo '<a href="index.php?action=recentchanges&amp;actionpage='.$lock_unlock_notify_all.'&amp;title='.api_htmlentities( echo '<a href="index.php?action=recentchanges&actionpage='.$lock_unlock_notify_all.'&'.api_get_cidreq().'&title='.api_htmlentities(
urlencode($page) urlencode($page)
).'">'.$notify_all.'</a>'; ).'">'.$notify_all.'</a>';
echo '</span>'.get_lang('RecentChanges').'</div>'; echo '</span>'.get_lang('RecentChanges').'</div>';
@ -4796,7 +4796,7 @@ class Wiki
$row[] = '<a href="'.api_get_self().'?'.api_get_cidreq( $row[] = '<a href="'.api_get_self().'?'.api_get_cidreq(
).'&action=showpage&title='.api_htmlentities( ).'&action=showpage&title='.api_htmlentities(
urlencode($obj->reflink) urlencode($obj->reflink)
).'&amp;view='.$obj->id.'&session_id='.api_get_session_id( ).'&view='.$obj->id.'&session_id='.api_get_session_id(
).'&group_id='.api_get_group_id().'">'. ).'&group_id='.api_get_group_id().'">'.
api_htmlentities($obj->title).'</a>'; api_htmlentities($obj->title).'</a>';
$row[] = $obj->version > 1 ? get_lang('EditedBy') : get_lang( $row[] = $obj->version > 1 ? get_lang('EditedBy') : get_lang(
@ -5492,7 +5492,7 @@ class Wiki
$current_row['version'], $current_row['version'],
$last_row['version'], $last_row['version'],
$current_row['linksto'] $current_row['linksto']
).': <a href="index.php?cidReq='.$_course['code'].'&action=showpage&amp;title='.api_htmlentities( ).': <a href="index.php?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(
urlencode($last_row['reflink']) urlencode($last_row['reflink'])
).'&session_id='.$last_row['session_id'].'&group_id='.$last_row['group_id'].'">'. ).'&session_id='.$last_row['session_id'].'&group_id='.$last_row['group_id'].'">'.
api_htmlentities($last_row['title']).'</a>', api_htmlentities($last_row['title']).'</a>',
@ -5553,21 +5553,21 @@ class Wiki
if ($view < $last_row['id']) { if ($view < $last_row['id']) {
$message = '<center>'.get_lang('NoAreSeeingTheLastVersion').'<br /> $message = '<center>'.get_lang('NoAreSeeingTheLastVersion').'<br />
'.get_lang("Version").' ( '.get_lang("Version").' (
<a href="index.php?cidReq='.$_course['code'].'&action=showpage&amp;title='.api_htmlentities( <a href="index.php?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(
urlencode($current_row['reflink']) urlencode($current_row['reflink'])
).'&group_id='.$current_row['group_id'].'&session_id='.$current_row['session_id'].'&view='.api_htmlentities( ).'&group_id='.$current_row['group_id'].'&session_id='.$current_row['session_id'].'&view='.api_htmlentities(
$_GET['view'] $_GET['view']
).'" title="'.get_lang('CurrentVersion').'"> ).'" title="'.get_lang('CurrentVersion').'">
'.$current_row['version'].' '.$current_row['version'].'
</a> / </a> /
<a href="index.php?cidReq='.$_course['code'].'&action=showpage&amp;title='.api_htmlentities( <a href="index.php?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(
urlencode($last_row['reflink']) urlencode($last_row['reflink'])
).'&group_id='.$last_row['group_id'].'&session_id='.$last_row['session_id'].'" title="'.get_lang( ).'&group_id='.$last_row['group_id'].'&session_id='.$last_row['session_id'].'" title="'.get_lang(
'LastVersion' 'LastVersion'
).'"> ).'">
'.$last_row['version'].' '.$last_row['version'].'
</a>) <br />'.get_lang("ConvertToLastVersion").': </a>) <br />'.get_lang("ConvertToLastVersion").':
<a href="index.php?cidReq='.$_course['id'].'&action=restorepage&amp;title='.api_htmlentities( <a href="index.php?cidReq='.$_course['id'].'&action=restorepage&title='.api_htmlentities(
urlencode($last_row['reflink']) urlencode($last_row['reflink'])
).'&group_id='.$last_row['group_id'].'&session_id='.$last_row['session_id'].'&view='.api_htmlentities( ).'&group_id='.$last_row['group_id'].'&session_id='.$last_row['session_id'].'&view='.api_htmlentities(
$_GET['view'] $_GET['view']
@ -6085,7 +6085,7 @@ class Wiki
ICON_SIZE_MEDIUM ICON_SIZE_MEDIUM
).'</a></li>'; ).'</a></li>';
///menu more ///menu more
$actionsLeft .= '<a href="index.php?action=more&amp;title='.api_htmlentities( $actionsLeft .= '<a href="index.php?cidReq='.$_course['id'].'&action=searchpages&session_id='.$session_id.'&group_id='.$groupId.'&action=more&title='.api_htmlentities(
urlencode($page) urlencode($page)
).'"'.self::is_active_navigation_tab('more').'>'. ).'"'.self::is_active_navigation_tab('more').'>'.
Display::return_icon( Display::return_icon(
@ -6736,9 +6736,9 @@ class Wiki
echo '<input name="old" value="'.$row['id'].'" type="radio" '.$oldstyle.' '.$oldchecked.'/> '; echo '<input name="old" value="'.$row['id'].'" type="radio" '.$oldstyle.' '.$oldchecked.'/> ';
echo '<input name="new" value="'.$row['id'].'" type="radio" '.$newstyle.' '.$newchecked.'/> '; echo '<input name="new" value="'.$row['id'].'" type="radio" '.$newstyle.' '.$newchecked.'/> ';
echo '<a href="'.api_get_self( echo '<a href="'.api_get_self(
).'?action=showpage&amp;title='.api_htmlentities( ).'?action=showpage&title='.api_htmlentities(
urlencode($page) urlencode($page)
).'&amp;view='.$row['id'].'">'; ).'&view='.$row['id'].'">';
echo '<a href="'.api_get_self().'?'.api_get_cidreq( echo '<a href="'.api_get_self().'?'.api_get_cidreq(
).'&action=showpage&title='.api_htmlentities( ).'&action=showpage&title='.api_htmlentities(
urlencode($page) urlencode($page)

Loading…
Cancel
Save