Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 474c8d3f005648a6beb75ada537ba9e94aac09f4 1 parent e48f4e5
stronk7 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/admin/block_admin.php
View
4 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')) {
Please sign in to comment.
Something went wrong with that request. Please try again.