13
Sep
11

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

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


0 Responses to “Aiken Import Fail Moodle 2”



  1. Tinggalkan sebuah Komentar

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

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

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


free counters

KALENDER GUE

September 2011
S S R K J S M
« Agu   Okt »
 1234
567891011
12131415161718
19202122232425
2627282930  

FaceBook Gue Nich

Blog Stats

  • 42,661 hits

Top Clicks

  • Tak ada

%d blogger menyukai ini: