In Netbeans, when I add
Code:
// AUP modification for quizz if ($summary_points==$total_points){
// $app = JFactory::getApplication();
// $app->enqueueMessage('Quizz terminé');
$referrerid = AltaUserPointsHelper::getAnyUserReferreID( $user->id ); $keyreference =
AltaUserPointsHelper::buildKeyreference( 'plgaup_guru_quizz', intval($quiz_id) );
AltaUserPointsHelper::userpoints( 'plgaup_guru_quizz', $referrerid, 0, $keyreference ); }
// end AUP modification for quizz
beneath
Code:
// stop to check if some questions don't have answer $score_quiz = 0;
if(intval($total_points) > 0){ $score_quiz = ($summary_points * 100) / $total_points; $score_quiz =
number_format($score_quiz, 2, ".", ","); }
I get a syntax warning that says
Code:
syntax error
unexpected: variable '$autosubmit'
after: }
expected: function, const, use, var }, var_comment, static, abstract, final, private, protected, public ----