aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_zencoder/includes/zencoder.inc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/video_zencoder/includes/zencoder.inc')
-rw-r--r--plugins/video_zencoder/includes/zencoder.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/video_zencoder/includes/zencoder.inc b/plugins/video_zencoder/includes/zencoder.inc
index 3b9f305..61023a0 100644
--- a/plugins/video_zencoder/includes/zencoder.inc
+++ b/plugins/video_zencoder/includes/zencoder.inc
@@ -55,7 +55,7 @@ class video_zencoder_api {
// thumbnails
// Setup our thmbnail path.
$video_thumb_path = variable_get('video_thumb_path', 'video_thumbs');
- $final_thumb_path = file_directory_path() . '/' . $video_thumb_path . '/' . $file->fid;
+ $final_thumb_path = file_default_scheme() . ':/' . $video_thumb_path . '/' . $file->fid;
// Notifications
// if(!empty($notify_url))
@@ -240,7 +240,7 @@ class video_zencoder_api {
} else {
$errors = '';
foreach ($request->errors as $error) {
- if($error == 'Email has already been taken'){
+ if ($error == 'Email has already been taken') {
drupal_set_message(t('Your account already exists on Zencoder. So !login to here and enter API key below', array('!login' => l(t('login'), 'https://app.zencoder.com/session/new'))));
variable_set('video_zencoder_api_key', 'Please enter your API Key');
return TRUE;