Skip to content

Commit

Permalink
MDL-23784 fixed more incorrect pix links
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 12, 2010
1 parent f8e9c93 commit b11681e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ public function get_element_icon(&$element, $spacerifnone=false) {
}

if ($spacerifnone) {
return '<img src="'.$CFG->wwwroot.'/pix/spacer.gif" class="icon itemicon" alt=""/>';
return $OUTPUT->spacer().' ';
} else {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion grade/report/grader/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public function print_toggle($type) {
if (array_key_exists($type, $icons)) {
$imagename = $icons[$type];
} else {
$imagename = "t/$type.gif";
$imagename = "t/$type";
}

$string = ${'str' . $showhide};
Expand Down
4 changes: 2 additions & 2 deletions lib/ajax/block_classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 0 additions & 1 deletion mod/quiz/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b11681e

Please sign in to comment.