next up previous contents
Next: grade_export_csv.php Up: 成績 Previous: access.php   Contents

dump.php

  1. 檔案內有關 txt 字串,都改成 csv。
    [root@moodle grade]# diff -urNwbBE export/txt/dump.php export/csv/dump.php
    --- export/txt/dump.php	2009-11-02 08:01:07.000000000 +0800
    +++ export/csv/dump.php	2013-03-25 13:40:18.000000000 +0800
    @@ -30,7 +30,7 @@
     }
     
     $context = get_context_instance(CONTEXT_COURSE, $id);
    -require_capability('gradeexport/txt:publish', $context);
    +require_capability('gradeexport/csv:publish', $context);
     
     // use the same page parameters as export.php and append &key=sdhakjsahdksahdkjsahksadjksahdkjsadhksa
     require 'export.php';
    



2018-08-14