| @@ -74,5 +74,5 @@ | ||
| 74 | 74 | |
| 75 | 75 | // OK response. | 
| 76 | 76 | $filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'. | 
| 77 | - $filesaved->get_itemid().'/'.$filesaved->get_filename(); | |
| 77 | + $filesaved->get_itemid().'/'.$filesaved->get_filename(); | |
| 78 | 78 | echo($filetarget); | 
| @@ -62,12 +62,12 @@ | ||
| 62 | 62 | // Prepare file record object. | 
| 63 | 63 | $usercontext = context_user::instance($USER->id); | 
| 64 | 64 | $fileinfo = array( | 
| 65 | - 'contextid' => $usercontext->id, // ID of context. | |
| 65 | + 'contextid' => $usercontext->id, // ID of context. | |
| 66 | 66 | 'component' => 'atto_recordrtc', // Usually = table name. | 
| 67 | - 'filearea' => 'annotation', // Usually = table name. | |
| 68 | - 'itemid' => time(), // Usually = ID of row in table. | |
| 69 | - 'filepath' => '/', // Any path beginning and ending in "/". | |
| 70 | - 'filename' => $filename, // Any filename. | |
| 67 | + 'filearea' => 'annotation', // Usually = table name. | |
| 68 | + 'itemid' => time(), // Usually = ID of row in table. | |
| 69 | + 'filepath' => '/', // Any path beginning and ending in "/". | |
| 70 | + 'filename' => $filename, // Any filename. | |
| 71 | 71 | 'author' => fullname($USER), | 
| 72 | 72 | 'license' => $CFG->sitedefaultlicense | 
| 73 | 73 | ); | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 |          foreach ($groups as $i => $group) { | 
| 38 | 38 |              $parts = explode('=', $group); | 
| 39 | 39 |              if (trim($parts[0]) == 'files') { | 
| 40 | - $groups[$i] = 'files = ' . trim($parts[1]) . ', recordrtc'; | |
| 40 | + $groups[$i] = 'files = '.trim($parts[1]).', recordrtc'; | |
| 41 | 41 | // Update config variable. | 
| 42 | 42 |                  $toolbar = implode("\n", $groups); | 
| 43 | 43 |                  set_config('toolbar', $toolbar, 'editor_atto'); | 
| @@ -77,7 +77,7 @@ discard block | ||
| 77 | 77 | 'videortcicon' => $videortcicon, | 
| 78 | 78 | 'oldermoodle' => $moodleversion < $moodle32, | 
| 79 | 79 | 'maxrecsize' => $maxrecsize | 
| 80 | - ); | |
| 80 | + ); | |
| 81 | 81 | |
| 82 | 82 | return $params; | 
| 83 | 83 | } | 
| @@ -89,45 +89,45 @@ discard block | ||
| 89 | 89 | global $PAGE; | 
| 90 | 90 | |
| 91 | 91 |      $PAGE->requires->strings_for_js(array('audiortc', | 
| 92 | - 'videortc', | |
| 93 | - 'gumabort_title', | |
| 94 | - 'gumabort', | |
| 95 | - 'gumnotallowed_title', | |
| 96 | - 'gumnotallowed', | |
| 97 | - 'gumnotfound_title', | |
| 98 | - 'gumnotfound', | |
| 99 | - 'gumnotreadable_title', | |
| 100 | - 'gumnotreadable', | |
| 101 | - 'gumoverconstrained_title', | |
| 102 | - 'gumoverconstrained', | |
| 103 | - 'gumsecurity_title', | |
| 104 | - 'gumsecurity', | |
| 105 | - 'gumtype_title', | |
| 106 | - 'gumtype', | |
| 107 | - 'insecurealert_title', | |
| 108 | - 'insecurealert', | |
| 109 | - 'browseralert_title', | |
| 110 | - 'browseralert', | |
| 111 | - 'startrecording', | |
| 112 | - 'recordagain', | |
| 113 | - 'stoprecording', | |
| 114 | - 'recordingfailed', | |
| 115 | - 'attachrecording', | |
| 116 | - 'norecordingfound_title', | |
| 117 | - 'norecordingfound', | |
| 118 | - 'nearingmaxsize_title', | |
| 119 | - 'nearingmaxsize', | |
| 120 | - 'notpremium_title', | |
| 121 | - 'notpremium', | |
| 122 | - 'servernotfound_title', | |
| 123 | - 'servernotfound', | |
| 124 | - 'uploadprogress', | |
| 125 | - 'uploadfailed', | |
| 126 | - 'uploadfailed404', | |
| 127 | - 'uploadaborted', | |
| 128 | - 'annotationprompt', | |
| 129 | - 'annotation:audio', | |
| 130 | - 'annotation:video'), | |
| 92 | + 'videortc', | |
| 93 | + 'gumabort_title', | |
| 94 | + 'gumabort', | |
| 95 | + 'gumnotallowed_title', | |
| 96 | + 'gumnotallowed', | |
| 97 | + 'gumnotfound_title', | |
| 98 | + 'gumnotfound', | |
| 99 | + 'gumnotreadable_title', | |
| 100 | + 'gumnotreadable', | |
| 101 | + 'gumoverconstrained_title', | |
| 102 | + 'gumoverconstrained', | |
| 103 | + 'gumsecurity_title', | |
| 104 | + 'gumsecurity', | |
| 105 | + 'gumtype_title', | |
| 106 | + 'gumtype', | |
| 107 | + 'insecurealert_title', | |
| 108 | + 'insecurealert', | |
| 109 | + 'browseralert_title', | |
| 110 | + 'browseralert', | |
| 111 | + 'startrecording', | |
| 112 | + 'recordagain', | |
| 113 | + 'stoprecording', | |
| 114 | + 'recordingfailed', | |
| 115 | + 'attachrecording', | |
| 116 | + 'norecordingfound_title', | |
| 117 | + 'norecordingfound', | |
| 118 | + 'nearingmaxsize_title', | |
| 119 | + 'nearingmaxsize', | |
| 120 | + 'notpremium_title', | |
| 121 | + 'notpremium', | |
| 122 | + 'servernotfound_title', | |
| 123 | + 'servernotfound', | |
| 124 | + 'uploadprogress', | |
| 125 | + 'uploadfailed', | |
| 126 | + 'uploadfailed404', | |
| 127 | + 'uploadaborted', | |
| 128 | + 'annotationprompt', | |
| 129 | + 'annotation:audio', | |
| 130 | + 'annotation:video'), | |
| 131 | 131 | 'atto_recordrtc'); | 
| 132 | 132 | } | 
| 133 | 133 | |