]> git.mjollnir.org Git - moodle.git/commitdiff
Now the help link in the admin block points to Docs. Bug 4803.
authorstronk7 <stronk7>
Fri, 5 May 2006 17:56:56 +0000 (17:56 +0000)
committerstronk7 <stronk7>
Fri, 5 May 2006 17:56:56 +0000 (17:56 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=4803)

Merged from MOODLE_16_STABLE

blocks/admin/block_admin.php

index 6523461088bc2379fc3c38c101fa2b2f503d7134..7a33c01031867bfcae8a53f50b1ae278066e36ca 100644 (file)
@@ -186,7 +186,9 @@ class block_admin extends block_list {
                 $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')) {