Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Vips
Commits
367dc8df
Commit
367dc8df
authored
Oct 14, 2022
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
drop obsolete function, re #160
parent
3bfb278b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exercises/algebraq/question.php
+0
-17
0 additions, 17 deletions
exercises/algebraq/question.php
with
0 additions
and
17 deletions
exercises/algebraq/question.php
+
0
−
17
View file @
367dc8df
...
@@ -331,23 +331,6 @@ class qtype_algebra_question {
...
@@ -331,23 +331,6 @@ class qtype_algebra_question {
// Use the parser's equivalent method to see if the response is the same as the answer.
// Use the parser's equivalent method to see if the response is the same as the answer.
return
$response
->
equivalent
(
$answer
);
return
$response
->
equivalent
(
$answer
);
}
}
public
function
check_file_access
(
$qa
,
$options
,
$component
,
$filearea
,
$args
,
$forcedownload
)
{
if
(
$component
==
'question'
&&
$filearea
==
'answerfeedback'
)
{
$currentanswer
=
$qa
->
get_last_qt_var
(
'answer'
);
$answer
=
$this
->
get_matching_answer
([
'answer'
=>
$currentanswer
]);
$answerid
=
reset
(
$args
);
// Parameter itemid is answer id.
return
$options
->
feedback
&&
$answerid
==
$answer
->
id
;
}
else
if
(
$component
==
'question'
&&
$filearea
==
'hint'
)
{
return
$this
->
check_hint_file_access
(
$qa
,
$options
,
$args
);
}
else
{
return
parent
::
check_file_access
(
$qa
,
$options
,
$component
,
$filearea
,
$args
,
$forcedownload
);
}
}
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment