Fix references to deleted icons - CT#7359

1.10.x
Yannick Warnier 10 years ago
parent 546290b7cc
commit 9a657a97bf
  1. 4
      main/admin/languages.php
  2. 2
      main/exercice/hotspot.class.php
  3. 1
      main/forum/viewthread.php
  4. 2
      main/inc/ajax/model.ajax.php
  5. 4
      main/inc/lib/myspace.lib.php
  6. 6
      main/inc/lib/tracking.lib.php
  7. 2
      main/mySpace/myStudents.php
  8. 4
      main/mySpace/student.php
  9. 10
      main/survey/survey.lib.php

@ -246,7 +246,7 @@ while ($row = Database::fetch_array($result_select)) {
$verified_if_is_father = SubLanguageManager::check_if_language_is_father($row['id']); $verified_if_is_father = SubLanguageManager::check_if_language_is_father($row['id']);
$allow_use_sub_language = "&nbsp;<a href='sub_language_add.php?action=definenewsublanguage&id=" . $row['id'] . "'>" . Display::return_icon('new_language.png', get_lang('CreateSubLanguage'), array(), ICON_SIZE_SMALL) . "</a>"; $allow_use_sub_language = "&nbsp;<a href='sub_language_add.php?action=definenewsublanguage&id=" . $row['id'] . "'>" . Display::return_icon('new_language.png', get_lang('CreateSubLanguage'), array(), ICON_SIZE_SMALL) . "</a>";
if ($verified_if_is_father === true) { if ($verified_if_is_father === true) {
//$allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=".$row['id']."'>".Display::return_icon('2rightarrow.gif', get_lang('AddWordForTheSubLanguage'),array('width'=>ICON_SIZE_SMALL,'height'=>ICON_SIZE_SMALL))."</a>"; //$allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=".$row['id']."'>".Display::return_icon('2rightarrow.png', get_lang('AddWordForTheSubLanguage'),array('width'=>ICON_SIZE_SMALL,'height'=>ICON_SIZE_SMALL))."</a>";
$allow_add_term_sub_language = ''; $allow_add_term_sub_language = '';
} else { } else {
$allow_add_term_sub_language = ''; $allow_add_term_sub_language = '';
@ -254,7 +254,7 @@ while ($row = Database::fetch_array($result_select)) {
} else { } else {
$allow_use_sub_language = ''; $allow_use_sub_language = '';
$all_information_of_sub_language = SubLanguageManager::get_all_information_of_language($row['id']); $all_information_of_sub_language = SubLanguageManager::get_all_information_of_language($row['id']);
$allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=" . Security::remove_XSS($all_information_of_sub_language['parent_id']) . "&sub_language_id=" . Security::remove_XSS($row['id']) . "'>" . Display::return_icon('2rightarrow.gif', get_lang('AddWordForTheSubLanguage'), array('width' => ICON_SIZE_SMALL, 'height' => ICON_SIZE_SMALL)) . "</a>"; $allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=" . Security::remove_XSS($all_information_of_sub_language['parent_id']) . "&sub_language_id=" . Security::remove_XSS($row['id']) . "'>" . Display::return_icon('2rightarrow.png', get_lang('AddWordForTheSubLanguage'), array('width' => ICON_SIZE_SMALL, 'height' => ICON_SIZE_SMALL)) . "</a>";
$allow_delete_sub_language = "&nbsp;<a href='sub_language_add.php?action=deletesublanguage&id=" . Security::remove_XSS($all_information_of_sub_language['parent_id']) . "&sub_language_id=" . Security::remove_XSS($row['id']) . "'>" . Display::return_icon('delete.png', get_lang('DeleteSubLanguage'), array('width' => ICON_SIZE_SMALL, 'height' => ICON_SIZE_SMALL)) . "</a>"; $allow_delete_sub_language = "&nbsp;<a href='sub_language_add.php?action=deletesublanguage&id=" . Security::remove_XSS($all_information_of_sub_language['parent_id']) . "&sub_language_id=" . Security::remove_XSS($row['id']) . "'>" . Display::return_icon('delete.png', get_lang('DeleteSubLanguage'), array('width' => ICON_SIZE_SMALL, 'height' => ICON_SIZE_SMALL)) . "</a>";
} }
} else { } else {

@ -34,7 +34,7 @@ class HotSpot extends Question
parent::createForm($form, $fck_config); parent::createForm($form, $fck_config);
if (!isset($_GET['editQuestion'])) { if (!isset($_GET['editQuestion'])) {
$form->addElement('file','imageUpload',array('<img src="../img/hotspots.png" />', get_lang('UploadJpgPicture')) ); $form->addElement('file','imageUpload',array('<img src="../img/icons/22/hotspots.png" />', get_lang('UploadJpgPicture')) );
// setting the save button here and not in the question class.php // setting the save button here and not in the question class.php
// Saving a question // Saving a question

@ -219,7 +219,6 @@ if ($my_message != 'PostDeletedSpecial') {
echo $my_url . '&view=flat">' echo $my_url . '&view=flat">'
. Display::return_icon('forum_listview.png', get_lang('FlatView'), null, ICON_SIZE_MEDIUM) . Display::return_icon('forum_listview.png', get_lang('FlatView'), null, ICON_SIZE_MEDIUM)
. '</a>'; . '</a>';
//echo $my_url.'&view=threaded">'.Display::return_icon('forum_threadedview.gif', get_lang('ThreadedView')).get_lang('ThreadedView').'</a>';
echo $my_url . '&view=nested">' echo $my_url . '&view=nested">'
. Display::return_icon('forum_nestedview.png', get_lang('NestedView'), null, ICON_SIZE_MEDIUM) . Display::return_icon('forum_nestedview.png', get_lang('NestedView'), null, ICON_SIZE_MEDIUM)
. '</a>'; . '</a>';

@ -960,7 +960,7 @@ switch ($action) {
'date' => $session_date_string, 'date' => $session_date_string,
'course_per_session' => $count_courses_in_session, 'course_per_session' => $count_courses_in_session,
'student_per_session' => $count_users_in_session, 'student_per_session' => $count_users_in_session,
'details' => Display::url(Display::return_icon('2rightarrow.gif'), $sessionUrl) 'details' => Display::url(Display::return_icon('2rightarrow.png'), $sessionUrl)
); );
} }
} }

@ -463,7 +463,7 @@ class MySpace
$table_row[] = $nb_students; $table_row[] = $nb_students;
$table_row[] = $nb_courses; $table_row[] = $nb_courses;
$table_row[] = $nb_sessions; $table_row[] = $nb_sessions;
$table_row[] = '<a href="session.php?id_coach='.$coaches['user_id'].'"><img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a>'; $table_row[] = '<a href="session.php?id_coach='.$coaches['user_id'].'"><img src="'.api_get_path(WEB_IMG_PATH).'icons/22/2rightarrow.png" border="0" /></a>';
$all_datas[] = $table_row; $all_datas[] = $table_row;
if ($is_western_name_order) { if ($is_western_name_order) {
@ -2167,7 +2167,7 @@ class MySpace
//set the "from" value to know if I access the Reporting by the chamilo tab or the course link //set the "from" value to know if I access the Reporting by the chamilo tab or the course link
$table_row[] = '<center><a href="../../tracking/courseLog.php?cidReq=' .$course_code.'&from=myspace&id_session='.$session_id.'"> $table_row[] = '<center><a href="../../tracking/courseLog.php?cidReq=' .$course_code.'&from=myspace&id_session='.$session_id.'">
<img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a> <img src="'.api_get_path(WEB_IMG_PATH).'icons/22/2rightarrow.png" border="0" /></a>
</center>'; </center>';
$csv_content[] = array( $csv_content[] = array(
api_html_entity_decode($row_course[1], ENT_QUOTES, $charset), api_html_entity_decode($row_course[1], ENT_QUOTES, $charset),

@ -4442,9 +4442,9 @@ class Tracking
$html .= Display::tag('td', ExerciseLib::convert_to_percentage($all_average)); $html .= Display::tag('td', ExerciseLib::convert_to_percentage($all_average));
if (isset($_GET['session_id']) && $my_session_id == $_GET['session_id']) { if (isset($_GET['session_id']) && $my_session_id == $_GET['session_id']) {
$icon = Display::url(Display::return_icon('2rightarrow_na.gif', get_lang('Details')), '?session_id='.$my_session_id); $icon = Display::url(Display::return_icon('2rightarrow_na.png', get_lang('Details')), '?session_id='.$my_session_id);
} else { } else {
$icon = Display::url(Display::return_icon('2rightarrow.gif', get_lang('Details')), '?session_id='.$my_session_id); $icon = Display::url(Display::return_icon('2rightarrow.png', get_lang('Details')), '?session_id='.$my_session_id);
} }
$html .= Display::tag('td', $icon); $html .= Display::tag('td', $icon);
$html .= '</tr>'; $html .= '</tr>';
@ -6363,7 +6363,7 @@ class TrackingCourseLog
$user['survey'] = (isset($survey_user_list[$user['user_id']]) ? $survey_user_list[$user['user_id']] : 0) .' / '.$total_surveys; $user['survey'] = (isset($survey_user_list[$user['user_id']]) ? $survey_user_list[$user['user_id']] : 0) .' / '.$total_surveys;
} }
$user['link'] = '<center><a href="../mySpace/myStudents.php?student='.$user['user_id'].'&details=true&course='.$course_code.'&origin=tracking_course&id_session='.$session_id.'"><img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a></center>'; $user['link'] = '<center><a href="../mySpace/myStudents.php?student='.$user['user_id'].'&details=true&course='.$course_code.'&origin=tracking_course&id_session='.$session_id.'"><img src="'.api_get_path(WEB_IMG_PATH).'icons/22/2rightarrow.png" border="0" /></a></center>';
// store columns in array $users // store columns in array $users

@ -902,7 +902,7 @@ if (!empty($student_id)) {
$from ='&from=myspace'; $from ='&from=myspace';
} }
$link = Display::url( $link = Display::url(
'<img src="../img/2rightarrow.gif" border="0" />', '<img src="../img/icons/22/2rightarrow.png" border="0" />',
'lp_tracking.php?cidReq='.Security::remove_XSS($_GET['course']).'&course='.Security::remove_XSS($_GET['course']).$from.'&origin='.$origin.'&lp_id='.$learnpath['id'].'&student_id='.$user_info['user_id'].'&id_session='.$sessionId 'lp_tracking.php?cidReq='.Security::remove_XSS($_GET['course']).'&course='.Security::remove_XSS($_GET['course']).$from.'&origin='.$origin.'&lp_id='.$learnpath['id'].'&student_id='.$user_info['user_id'].'&id_session='.$sessionId
); );
echo Display::tag('td', $link); echo Display::tag('td', $link);

@ -159,10 +159,10 @@ function get_users($from, $limit, $column, $direction)
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) {
$detailsLink = '<a href="myStudents.php?student='.$student_id.'&id_coach='.$coach_id.'&id_session='.$_GET['id_session'].'"> $detailsLink = '<a href="myStudents.php?student='.$student_id.'&id_coach='.$coach_id.'&id_session='.$_GET['id_session'].'">
<img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a>'; <img src="'.api_get_path(WEB_IMG_PATH).'icons/22/2rightarrow.png" border="0" /></a>';
} else { } else {
$detailsLink = '<a href="myStudents.php?student='.$student_id.'"> $detailsLink = '<a href="myStudents.php?student='.$student_id.'">
<img src="'.api_get_path(WEB_IMG_PATH).'2rightarrow.gif" border="0" /></a>'; <img src="'.api_get_path(WEB_IMG_PATH).'icons/22/2rightarrow.png" border="0" /></a>';
} }
$lostPasswordLink = ''; $lostPasswordLink = '';

@ -887,11 +887,11 @@ class SurveyManager
'multiplechoice' => 'mcua.png', 'multiplechoice' => 'mcua.png',
'multipleresponse' => 'mcma.png', 'multipleresponse' => 'mcma.png',
'open' => 'open_answer.png', 'open' => 'open_answer.png',
'dropdown' => 'dropdown.gif', 'dropdown' => 'dropdown.png',
'percentage' => 'percentagequestion.gif', 'percentage' => 'percentagequestion.png',
'score' => 'scorequestion.gif', 'score' => 'scorequestion.png',
'comment' => 'commentquestion.gif', 'comment' => 'commentquestion.png',
'pagebreak' => 'page_end.gif', 'pagebreak' => 'page_end.png',
); );
if (in_array($type, $possible_types)) { if (in_array($type, $possible_types)) {

Loading…
Cancel
Save