Permalink
Browse files

Now the help link in the admin block points to Docs. Bug 4803.

  • Loading branch information...
stronk7
stronk7 committed May 5, 2006
1 parent e48f4e5 commit 474c8d3f005648a6beb75ada537ba9e94aac09f4
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/admin/block_admin.php
@@ -186,7 +186,9 @@ function load_content_for_course() {
$this->content->icons[] = '<img src="'.$CFG->pixpath.'/i/payment.gif" alt="" />';
}
- $this->content->items[]='<a href="'.$CFG->wwwroot.'/doc/view.php?id='.$this->instance->pageid.'&amp;file=teacher.html">'.get_string('help').'</a>';
+ $lang = str_replace('_utf8', '', current_language());
+
+ $this->content->items[]='<a href="http://docs.moodle.org/'.$lang.'/Teacher_documentation">'.get_string('help').'</a>';
$this->content->icons[]='<img src="'.$CFG->modpixpath.'/resource/icon.gif" alt="" />';
if ($teacherforum = forum_get_course_forum($this->instance->pageid, 'teacher')) {

0 comments on commit 474c8d3

Please sign in to comment.