Skip to content

Commit

Permalink
MDL-19690 - 4 more $CFG->pixpath to $OUTPUT->old_icon_url
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Jul 2, 2009
1 parent 4096752 commit 73511be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/mnet/access_control.php
Expand Up @@ -151,7 +151,7 @@
} else {
$columndir = $dir == "ASC" ? "DESC" : "ASC";
$columnicon = $dir == "ASC" ? "down" : "up";
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" alt=\"\" />";
$columnicon = " <img src=\"" . $OUTPUT->old_icon_url('t/' . $columnicon) . "\" alt=\"\" />";
}
$headings[$column] = "<a href=\"?sort=$column&amp;dir=$columndir&amp;\">".$string[$column]."</a>$columnicon";
}
Expand Down
2 changes: 1 addition & 1 deletion admin/report/configlog/index.php
Expand Up @@ -46,7 +46,7 @@
} else {
$columnicon = $dir == 'ASC' ? 'down':'up';
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" alt=\"\" />";
$columnicon = " <img src=\"" . $OUTPUT->old_icon_url('t/' . $columnicon) . "\" alt=\"\" />";

}
$hcolumns[$column] = "<a href=\"index.php?sort=$column&amp;dir=$columndir&amp;page=$page&amp;perpage=$perpage\">".$strcolumn."</a>$columnicon";
Expand Down
2 changes: 1 addition & 1 deletion admin/user.php
Expand Up @@ -140,7 +140,7 @@
} else {
$columnicon = $dir == "ASC" ? "down":"up";
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" alt=\"\" />";
$columnicon = " <img src=\"" . $OUTPUT->old_icon_url('t/' . $columnicon) . "\" alt=\"\" />";

}
$$column = "<a href=\"user.php?sort=$column&amp;dir=$columndir\">".$string[$column]."</a>$columnicon";
Expand Down
4 changes: 2 additions & 2 deletions lib/weblib.php
Expand Up @@ -3267,7 +3267,7 @@ function print_file_picture($path, $courseid=0, $height='', $width='', $link='',
* @return string|void String or nothing, depending on $return.
*/
function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=false, $link=true, $target='', $alttext=true) {
global $CFG, $DB;
global $CFG, $DB, $OUTPUT;

$needrec = false;
// only touch the DB if we are missing data...
Expand Down Expand Up @@ -3332,7 +3332,7 @@ function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=fa
$src = get_file_url($user->id.'/'.$file.'.jpg', null, 'user');
} else { // Print default user pictures (use theme version if available)
$class .= " defaultuserpic";
$src = "$CFG->pixpath/u/$file.png";
$src = $OUTPUT->old_icon_url('u/' . $file);
}
$imagealt = '';
if ($alttext) {
Expand Down

0 comments on commit 73511be

Please sign in to comment.