MDL-30740 skydrive: show albums as essentially they are "folders"
authorRuslan Kabalin <r.kabalin@lancaster.ac.uk>
Mon, 19 Nov 2012 16:38:39 +0000 (16:38 +0000)
committerDan Poltawski <dan@moodle.com>
Mon, 15 Jul 2013 09:57:42 +0000 (17:57 +0800)
If you create a folder in SkyDrive and add image to it, it will be calssified
as album and, this will not be listed without this patch.

repository/skydrive/microsoftliveapi.php

index e19e9a5..bcadcd2 100644 (file)
@@ -127,6 +127,7 @@ class microsoft_skydrive extends oauth2_client {
         foreach ($ret->data as $file) {
             switch($file->type) {
                 case 'folder':
+                case 'album':
                     $files[] = array(
                         'title' => $file->name,
                         'path' => $file->id,