Tarea #1069 -> A partir del 2º video, el reproductor se para

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@167 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-09-03 10:15:09 +00:00
parent 5aa28f3628
commit 683eda6df4

View File

@ -18,6 +18,7 @@ add_action('wp_print_scripts', 'gp_enqueue_ajax_scripts');
function gp_ajax_video_data() {
global $gp_settings, $post, $current_user, $bp;
get_currentuserinfo();
$nonce = $_POST['postCommentNonce'];
if ( ! wp_verify_nonce( $nonce, 'myajax-post-comment-nonce' ) )
@ -50,10 +51,10 @@ function gp_ajax_video_data() {
}
$array = array();
$i = 0;
$video = new WP_Query($args);
while ($video->have_posts()) {
$video->the_post();
$listavideos = new WP_Query($args);
while ($listavideos->have_posts()) {
$listavideos->the_post();
require(dirname(__FILE__).'/../../loop-dedication-data.php');
// Perfil del usuario: sólo mostrar las dedicadas por él y para él. El resto se descartan.