Skip to content

Commit

Permalink
fixed quoting of attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Sep 12, 2004
1 parent d1290ce commit a43bbd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions blocks/online_users/block_online_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function get_content() {
//Calculate minutes
$minutes = floor($timetoshowusers/60);

$this->content->text = "<font size=\"-2\"><div align=center>(".get_string("periodnminutes","block_online_users",$minutes).")</div></font>";
$this->content->text = "<font size=\"-2\"><div align=\"center\">(".get_string("periodnminutes","block_online_users",$minutes).")</div></font>";

//Now, we have in users, the list of users to show
//Because they are online
Expand All @@ -137,7 +137,7 @@ function get_content() {
$table->align = array("right","left");
$table->cellpadding = 1;
$table->cellspacing = 1;
$table->data[] = array("<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">",$user->fullname);
$table->data[] = array("<img src=\"$CFG->pixpath/i/user.gif\" height=\"16\" width=\"16\" alt=\"\">",$user->fullname);
}
// Slightly hacky way to do it but...
ob_start();
Expand All @@ -146,7 +146,7 @@ function get_content() {
ob_end_clean();
*/
} else {
$this->content->text .= "<font size=\"-1\"><p align=center>".get_string("none")."</p></font>";
$this->content->text .= "<font size=\"-1\"><p align=\"center\">".get_string("none")."</p></font>";
}

return $this->content;
Expand Down
2 changes: 1 addition & 1 deletion blocks/section_links/block_section_links.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function get_content() {
} else {
$link = '#';
}
$text = '<font size=-1>';
$text = '<font size="-1">';
for ($i = $inc; $i <= $this->course->numsections; $i += $inc) {
$isvisible = get_field('course_sections', 'visible', 'course', $this->course->id, 'section', $i);
if (!$isvisible and !isteacher($this->course->id)) {
Expand Down

0 comments on commit a43bbd9

Please sign in to comment.