From: gustav_delius Date: Sun, 12 Sep 2004 20:30:43 +0000 (+0000) Subject: fixed quoting of attribute values X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a43bbd9a15373dba392f1a7e4b2327e616f774b8;p=moodle.git fixed quoting of attribute values --- diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 2d71dd9cb0..8d3f1003b3 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -113,7 +113,7 @@ class CourseBlock_online_users extends MoodleBlock { //Calculate minutes $minutes = floor($timetoshowusers/60); - $this->content->text = "
(".get_string("periodnminutes","block_online_users",$minutes).")
"; + $this->content->text = "
(".get_string("periodnminutes","block_online_users",$minutes).")
"; //Now, we have in users, the list of users to show //Because they are online @@ -137,7 +137,7 @@ class CourseBlock_online_users extends MoodleBlock { $table->align = array("right","left"); $table->cellpadding = 1; $table->cellspacing = 1; - $table->data[] = array("pixpath/i/user.gif\" height=16 width=16 alt=\"\">",$user->fullname); + $table->data[] = array("pixpath/i/user.gif\" height=\"16\" width=\"16\" alt=\"\">",$user->fullname); } // Slightly hacky way to do it but... ob_start(); @@ -146,7 +146,7 @@ class CourseBlock_online_users extends MoodleBlock { ob_end_clean(); */ } else { - $this->content->text .= "

".get_string("none")."

"; + $this->content->text .= "

".get_string("none")."

"; } return $this->content; diff --git a/blocks/section_links/block_section_links.php b/blocks/section_links/block_section_links.php index a6f08a8639..03043519d4 100644 --- a/blocks/section_links/block_section_links.php +++ b/blocks/section_links/block_section_links.php @@ -63,7 +63,7 @@ class CourseBlock_section_links extends MoodleBlock { } else { $link = '#'; } - $text = ''; + $text = ''; 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)) {