MDL-23784 fixed more incorrect pix links

This commit is contained in:
Petr Skoda 2010-08-12 18:38:56 +00:00
parent f8e9c93a9a
commit b11681e036
5 changed files with 6 additions and 7 deletions

View File

@ -1054,7 +1054,7 @@ class grade_structure {
}
if ($spacerifnone) {
return '<img src="'.$CFG->wwwroot.'/pix/spacer.gif" class="icon itemicon" alt=""/>';
return $OUTPUT->spacer().' ';
} else {
return '';
}

View File

@ -507,7 +507,7 @@ class grade_report_grader extends grade_report {
if (array_key_exists($type, $icons)) {
$imagename = $icons[$type];
} else {
$imagename = "t/$type.gif";
$imagename = "t/$type";
}
$string = ${'str' . $showhide};

View File

@ -222,7 +222,7 @@ block_class.prototype.toggle_hide = function(e, target, isCosmetic) {
var strshow = main.portal.strings['show'];
if (YAHOO.util.Dom.hasClass(this.getEl(), 'hidden')) {
this.getEl().className = this.originalClass;
this.viewbutton.childNodes[0].src = this.viewbutton.childNodes[0].src.replace(/show.gif/i, 'hide.gif');
this.viewbutton.childNodes[0].src = this.viewbutton.childNodes[0].src.replace(/show./i, 'hide.');
this.viewbutton.childNodes[0].alt = this.viewbutton.childNodes[0].alt.replace(strshow, strhide);
this.viewbutton.title = this.viewbutton.title.replace(strshow, strhide);
@ -233,7 +233,7 @@ block_class.prototype.toggle_hide = function(e, target, isCosmetic) {
} else {
this.originalClass = this.getEl().className;
this.getEl().className = "hidden block";
this.viewbutton.childNodes[0].src = this.viewbutton.childNodes[0].src.replace(/hide.gif/i,'show.gif');
this.viewbutton.childNodes[0].src = this.viewbutton.childNodes[0].src.replace(/hide./i,'show.');
this.viewbutton.childNodes[0].alt = this.viewbutton.childNodes[0].alt.replace(strhide, strshow);
this.viewbutton.title = this.viewbutton.title.replace(strhide, strshow);

View File

@ -1421,8 +1421,8 @@ function message_print_message_history($user1,$user2,$search='',$messagelimit=0,
echo '<div class="heading">'.fullname($user1).'</div>';
echo '</td>';
echo '<td align="center">';
echo '<img src="'.$CFG->wwwroot.'/pix/t/left.gif" alt="'.get_string('from').'" />';
echo '<img src="'.$CFG->wwwroot.'/pix/t/right.gif" alt="'.get_string('to').'" />';
echo '<img src="'.$OUTPUT->pix_url('t/left').'" alt="'.get_string('from').'" />';
echo '<img src="'.$OUTPUT->pix_url('t/right').'" alt="'.get_string('to').'" />';
echo '</td>';
echo '<td align="center" id="user2">';
echo $OUTPUT->user_picture($user2, array('size'=>100, 'courseid'=>SITEID));

View File

@ -410,7 +410,6 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
if ($qnum && !array_key_exists($questions[$qnum]->qtype, $QTYPES)) {
$questions[$qnum]->qtype = 'missingtype';
}
$deletex = "delete.gif";
if ($qnum != 0 || ($qnum == 0 && !$pageopen)) {
//this is either a question or a page break after another
// (no page is currently open)