Aiken Import Fail Moodle 2

Bila kita menemui tidak bisa mengimport soal dengan format aiken pada moodle 2.1, padahal format penulisan sudah benar dan bila diimport pada moodle 1.9,  berarti ada script yang harus Anda rubah, script tersebut adalah

===================================================

The problem seems to be in ‘question/format/aiken/format.php’ around line 78.

 

If you change it from…

—-

if (preg_match(‘/^[A-Z][).][ \t]/’, $nowline)) {

// A choice. Trim off the label and space, then save

$question->answer[] = htmlspecialchars(trim(substr($nowline, 2)), ENT_NOQUOTES);

$question->fraction[] = 0;

$question->feedback[] = ”;

continue;

}

—-

 

to….

—-

if (preg_match(‘/^[A-Z][).][ \t]/’, $nowline)) {

// A choice. Trim off the label and space, then save

$question->answer[] = array(‘text’ => htmlspecialchars(trim(substr($nowline, 2)), ENT_NOQUOTES), ‘format’ => 0, ‘files’ => array());

$question->fraction[] = 0;

$question->feedback[] = ”;

continue;

}

—–

 

it resolves the import issue.

info lebih rumit dikit kunjungi link berikut >>>>>>>>>>>>>>>>>>>>>>>>>>>>>

source:http://tracker.moodle.org/browse/MDL-28438?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-tab

====================================================

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s