MDL-35101 Repository: Public Flickr fails when the picture has no license
This commit is contained in:
@@ -213,13 +213,14 @@ class repository_flickr_public extends repository {
|
||||
|
||||
public function license4moodle ($license_id) {
|
||||
$license = array(
|
||||
'0' => 'allrightsreserved',
|
||||
'1' => 'cc-nc-sa',
|
||||
'2' => 'cc-nc',
|
||||
'3' => 'cc-nc-nd',
|
||||
'4' => 'cc',
|
||||
'5' => 'cc-sa',
|
||||
'6' => 'cc-nd',
|
||||
'7' => 'allrightsreserved'
|
||||
'7' => 'other'
|
||||
);
|
||||
return $license[$license_id];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user