Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
ae5a3939
Commit
ae5a3939
authored
May 02, 2009
by
stronk7
Browse files
using new DB syntax
parent
e849e868
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gradelib.php
View file @
ae5a3939
...
...
@@ -876,8 +876,7 @@ function grade_force_full_regrading($courseid) {
*/
function
grade_force_site_regrading
()
{
global
$CFG
,
$DB
;
$sql
=
"UPDATE
{
$CFG
->
prefix
}
grade_items SET needsupdate=1"
;
$DB
->
execute
(
$sql
);
$DB
->
set_field
(
'grade_items'
,
'needsupdate'
,
1
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment