Permalink
Browse files

fixed html emails

  • Loading branch information...
1 parent 854e6f0 commit 54902ff05669c899e9f9ee43cf29ebd427313be6 skodak committed Jul 12, 2005
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/assignment/lib.php
View
@@ -1001,10 +1001,11 @@ function email_teachers_text($info) {
function email_teachers_html($info) {
+ global $CFG;
$posthtml = '<p><font face="sans-serif">'.
- '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$this->course->id.'">'.$course->shortname.'</a> ->'.
+ '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$this->course->id.'">'.$this->course->shortname.'</a> ->'.
'<a href="'.$CFG->wwwroot.'/mod/assignment/index.php?id='.$this->course->id.'">'.$this->strassignments.'</a> ->'.
- '<a href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$cm->id.'">'.format_string($this->assignment->name,true).'</a></font></p>';
+ '<a href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$this->cm->id.'">'.format_string($this->assignment->name,true).'</a></font></p>';
$posthtml .= '<hr /><font face="sans-serif">';
$posthtml .= '<p>'.get_string('emailteachermailhtml', 'assignment', $info).'</p>';
$posthtml .= '</font><hr />';

0 comments on commit 54902ff

Please sign in to comment.