Minor - flint fixes

pull/2926/head
Julio Montoya 7 years ago
parent e898c035ed
commit ee58d132f5
  1. 1
      main/admin/access_url_edit.php
  2. 9
      main/mySpace/lp_tracking.php

@ -6,7 +6,6 @@
*
* @author Julio Montoya <gugli100@gmail.com>
*/
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -88,7 +88,7 @@ switch ($action) {
if (!api_is_allowed_to_edit()) {
api_not_allowed();
}
$tpl = new Template(null,false,false);
$tpl = new Template(null, false, false);
$itemId = isset($_REQUEST['extend_id']) ? $_REQUEST['extend_id'] : 0;
$itemViewId = isset($_REQUEST['extend_attempt_id']) ? $_REQUEST['extend_attempt_id'] : 0;
$em = Database::getManager();
@ -196,15 +196,11 @@ switch ($action) {
$generalScore[] = [
'score' => $scoreDisplay->display_score($globalScoreTotal, SCORE_DIV),
'score_numeric' => $scoreDisplay->display_score($globalScoreTotal, SCORE_NUMERIC),
'score_percentage' => $scoreDisplay->display_score($globalScoreTotal, SCORE_PERCENT)
'score_percentage' => $scoreDisplay->display_score($globalScoreTotal, SCORE_PERCENT),
];
$tpl->assign('general_score', $generalScore);
$tpl->assign('global_total', $score);
$table->setCellContents($row, 0, get_lang('GlobalTotal'));
$table->setCellContents($row, 1, '');
$table->setCellContents($row, 2, $score);
@ -223,7 +219,6 @@ switch ($action) {
'candidate' => $studentName,
];
$tpl->assign('data', $dataLpInfo);
$template = $tpl->fetch($tpl->get_template('my_space/pdf_tracking_lp.tpl'));
$contentText = $template;

Loading…
Cancel
Save