next up previous contents
Next: 用戶 Up: 課程 Previous: index.php 程式修改   Contents

lib.php 程式修改

  1. 增加換行標籤,不然課程顯示時第一行教師,會接著課程名稱後,而不恰當換行。
    [root@moodle html]# diff -urNwbBE moodle/course/lib.php moodle23/course/lib.php 
    --- moodle/course/lib.php	2012-08-10 08:04:52.000000000 +0800
    +++ moodle23/course/lib.php	2014-03-08 07:23:22.000000000 +0800
    @@ -2564,6 +2564,7 @@
     
             if (!empty($namesarray)) {
                 echo html_writer::start_tag('ul', array('class'=>'teachers'));
    +            echo html_writer::tag('p', ''); //dywang
                 foreach ($namesarray as $name) {
                     echo html_writer::tag('li', $name);
    


2017-08-04