"MDL-15488, fixed flickr plugin"

This commit is contained in:
Dongsheng Cai
2010-03-10 03:37:31 +00:00
parent 7c5c69d6dc
commit b38b61320d
+2 -1
View File
@@ -301,7 +301,8 @@ class repository_flickr extends repository {
$callbackurl = get_string('callbackwarning', 'repository_flickr');
$mform->addElement('static', null, '', $callbackurl);
} else {
$callbackurl = $CFG->wwwroot.'/repository/repository_ajax.php?callback=yes&repo_id='.$instances[0]->id;
$instance = array_shift($instances);
$callbackurl = $CFG->wwwroot.'/repository/repository_ajax.php?callback=yes&repo_id='.$instance->id;
$mform->addElement('static', 'callbackurl', '', get_string('callbackurltext', 'repository_flickr', $callbackurl));
}