mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-15350, fix a bug in boxnet plugin
This commit is contained in:
parent
1101dac08d
commit
fdca53eaf1
@ -104,6 +104,7 @@ var create_cb = {
|
||||
}
|
||||
if(ret == 200) {
|
||||
alert('Create Repository Instances successfully!');
|
||||
location.reload();
|
||||
btn.value='Done';
|
||||
} else {
|
||||
alert('Failed to create repository instances.');
|
||||
|
@ -58,9 +58,7 @@ class repository_boxnet extends repository{
|
||||
|
||||
public function get_login(){
|
||||
global $DB;
|
||||
$repository = new stdclass;
|
||||
$repository->id = $this->repositoryid;
|
||||
if ($entry = $DB->get_record('repository', $repository)) {
|
||||
if ($entry = $DB->get_record('repository', array('id'=>$this->repositoryid))) {
|
||||
$ret->username = $entry->username;
|
||||
$ret->password = $entry->password;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user