From 65e4e46dbbdd0b2e25977e0365ac215f8f6f399e Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Sat, 8 Jan 2011 08:44:45 +0000 Subject: Updating module for drupal7 file system API --- plugins/video_zencoder/includes/zencoder.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/video_zencoder/includes') 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; -- cgit v1.2.3