diff --git a/main/inc/lib/SessionFieldValue.class.php b/main/inc/lib/SessionFieldValue.class.php deleted file mode 100644 index f42212e475..0000000000 --- a/main/inc/lib/SessionFieldValue.class.php +++ /dev/null @@ -1,11 +0,0 @@ -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; diff --git a/main/session/index.php b/main/session/index.php index fcb9c361aa..6fda6ee794 100755 --- a/main/session/index.php +++ b/main/session/index.php @@ -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;