aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/video.module b/video.module
index 5fc7726..c92af7b 100644
--- a/video.module
+++ b/video.module
@@ -764,6 +764,9 @@ function video_play() {
// include video.js file for Internet Explorer fixes
theme('video_get_script');
drupal_set_title(t('Playing') . ' ' . theme('placeholder', $node->title));
+ if (variable_get('video_playcounter', 1)) {
+ db_query("UPDATE {video} SET play_counter = play_counter + 1 where vid = %d", $node->vid); //Increment play counter.
+ }
switch (_video_get_filetype($node->vidfile)) {
case 'mov':
case 'mp4':
@@ -790,9 +793,6 @@ function video_play() {
drupal_goto("node/$node->nid");
break;
}
- if (variable_get('video_playcounter', 1)) {
- db_query("UPDATE {video} SET play_counter = play_counter + 1 where vid = %d", $node->vid); //Increment play counter.
- }
}
else {
drupal_not_found();