]> git.mjollnir.org Git - moodle.git/commitdiff
Making file XHTML 1.0 Transitional compliant...
authormchurch <mchurch>
Wed, 8 Sep 2004 21:37:11 +0000 (21:37 +0000)
committermchurch <mchurch>
Wed, 8 Sep 2004 21:37:11 +0000 (21:37 +0000)
enrol/enrol.class.php

index 2bdbecc3c7720d28b2d7a2b52fcef1344a2001a5..96ef28444737c3b2803020ea01ed92eff2c7c5c9 100644 (file)
@@ -311,13 +311,14 @@ function get_access_icons($course) {
 
     if ($course->guest) {
         $strallowguests = get_string("allowguests");
-        $str .= "<a title=\"$strallowguests\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
-        $str .= "<img vspace=4 alt=\"$strallowguests\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/guest.gif\"></a>&nbsp;&nbsp;";
+        $str .= '<a title="'.$strallowguests.'" href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">';
+        $str .= '<img vspace="4" alt="'.$strallowguests.'" height="16" width="16" border="0" '.
+                'src="'.$CFG->pixpath.'/i/guest.gif" /></a>&nbsp;&nbsp;';
     }
     if ($course->password) {
         $strrequireskey = get_string("requireskey");
-        $str .= "<a title=\"$strrequireskey\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
-        $str .= "<img vspace=4 alt=\"$strrequireskey\" height=16 width=16 border=0 src=\"$CFG->pixpath/i/key.gif\"></a>";
+        $str .= '<a title="'.$strrequireskey.'" href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">';
+        $str .= '<img vspace="4" alt="'.$strrequireskey.'" height="16" width="16" border="0" src="'.$CFG->pixpath.'/i/key.gif" /></a>';
     }
 
     return $str;