diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-28 18:54:07 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-06-28 18:54:07 +0000 |
commit | 669795d5a4522c6d7826b8f91946d4e4910baf6b (patch) | |
tree | ffa669140f623d3514362f6f579a3626d2faafed | |
parent | 475e9a72efadf35e891cb97bc49a976b76bc327f (diff) | |
download | video-669795d5a4522c6d7826b8f91946d4e4910baf6b.tar.gz video-669795d5a4522c6d7826b8f91946d4e4910baf6b.tar.bz2 |
Patch #70738 by bot (http://drupal.org/user/56659)
video_playcounter is never increased
fixes the play counter which was no more incremented.
-rw-r--r-- | video.module | 6 |
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(); |