Remove unnecessary SessionFieldValue class - refs BT#9070

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 43838c6343
commit 14c931048d
  1. 11
      main/inc/lib/SessionFieldValue.class.php
  2. 4
      main/inc/lib/sessionmanager.lib.php
  3. 2
      main/session/index.php

@ -1,11 +0,0 @@
<?php
class SessionFieldValue extends ExtraFieldValue
{
public function __construct()
{
parent::__construct('session');
}
}

@ -207,7 +207,7 @@ class SessionManager
if (!empty($session_id)) {
$extraFields['session_id'] = $session_id;
$sessionFieldValue = new SessionFieldValue();
$sessionFieldValue = new ExtraFieldValue('session');
$sessionFieldValue->save_field_values($extraFields);
/*
@ -1473,7 +1473,7 @@ class SessionManager
$extraFields['session_id'] = $id;
$sessionFieldValue = new SessionFieldValue();
$sessionFieldValue = new ExtraFieldValue('session');
$sessionFieldValue->save_field_values($extraFields);
return $id;

@ -22,7 +22,7 @@ require_once api_get_path(SYS_CODE_PATH).'exercice/exercise.class.php';
$session_id = isset($_GET['session_id']) ? intval($_GET['session_id']): null;
$sessionField = new SessionFieldValue();
$sessionField = new ExtraFieldValue('session');
$valueAllowVisitors = $sessionField->get_values_by_handler_and_field_variable($session_id, 'permitir_visitantes');
$allowVisitors = $valueAllowVisitors != false;

Loading…
Cancel
Save