aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_zencoder/includes
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2011-01-08 08:44:45 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2011-01-08 08:44:45 +0000
commit65e4e46dbbdd0b2e25977e0365ac215f8f6f399e (patch)
tree51312c2a88a154c4ece81d2be28efd7ad3692685 /plugins/video_zencoder/includes
parentd1ef125d9d6b772922411187baaaf3402316c431 (diff)
downloadvideo-65e4e46dbbdd0b2e25977e0365ac215f8f6f399e.tar.gz
video-65e4e46dbbdd0b2e25977e0365ac215f8f6f399e.tar.bz2
Updating module for drupal7 file system API
Diffstat (limited to 'plugins/video_zencoder/includes')
-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;