Gitlab CSE Unil
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
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
303c4abb
Commit
303c4abb
authored
Nov 01, 2016
by
M. Chardon
Browse files
correction droit + correction bug maj statut étudiant
parent
57462c66
Changes
3
Hide whitespace changes
Inline
Side-by-side
ajax.php
View file @
303c4abb
...
...
@@ -219,7 +219,7 @@ if ($action == 'loadallpages') {
$page
=
json_decode
(
$pagejson
);
$index
=
required_param
(
'index'
,
PARAM_INT
);
$added
=
page_editor
::
update_annotations_status
(
$grade
->
id
,
$page
->
annotations
);
$added
=
page_editor
::
update_annotations_status
(
$page
->
annotations
);
if
(
$added
!=
count
(
$page
->
annotations
))
{
array_push
(
$response
->
errors
,
get_string
(
'couldnotsavepage'
,
'assignfeedback_editpdfplus'
,
$index
+
1
));
}
...
...
lang/fr/assignfeedback_editpdfplus.php
View file @
303c4abb
...
...
@@ -101,7 +101,7 @@ $string['white'] = 'White';
$string
[
'yellow'
]
=
'Yellow'
;
$string
[
'yellowlemon'
]
=
'Lemon yellow'
;
$string
[
'draftchangessaved'
]
=
'Annotations sauvées'
;
$string
[
'nodraftchangessaved'
]
=
'Changement sauvés'
;
$string
[
'nodraftchangessaved'
]
=
'Changement
s
sauvés'
;
$string
[
'preparesubmissionsforannotation'
]
=
'Préparation de la validation des annotations'
;
$string
[
'question_select'
]
=
'Question'
;
$string
[
'question_select_with'
]
=
'Avec'
;
...
...
locallib.php
View file @
303c4abb
...
...
@@ -318,7 +318,7 @@ class assign_feedback_editpdfplus extends assign_feedback_plugin {
*/
public
function
is_enabled
()
{
if
(
$this
->
assignment
->
get_context
())
{
return
has_capability
(
'mod/assignfeedback_editpdf:use'
,
$this
->
assignment
->
get_context
());
return
has_capability
(
'mod/assignfeedback_editpdf:use'
,
$this
->
assignment
->
get_context
()
,
null
,
false
);
}
return
false
;
}
...
...
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