Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-filter_jmol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nik | Klampfradler
moodle-filter_jmol
Commits
5d94b32e
Commit
5d94b32e
authored
9 years ago
by
Geoff Rowland
Browse files
Options
Downloads
Patches
Plain Diff
Fix comparison of temp and Moodle data file
parent
61aec703
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
filter.php
+2
-2
2 additions, 2 deletions
filter.php
with
2 additions
and
2 deletions
filter.php
+
2
−
2
View file @
5d94b32e
...
@@ -183,7 +183,7 @@ function filter_jmol_replace_callback($matches) {
...
@@ -183,7 +183,7 @@ function filter_jmol_replace_callback($matches) {
if
(
$filearea
===
'content'
)
{
if
(
$filearea
===
'content'
)
{
$itemid
=
0
;
$itemid
=
0
;
}
}
// required for mod_quiz
// required for mod_quiz
.
if
(
$filearea
===
'questiontext'
)
{
if
(
$filearea
===
'questiontext'
)
{
$itemid
=
array_pop
(
$args
);
;
$itemid
=
array_pop
(
$args
);
;
$filepath
=
'/'
;
$filepath
=
'/'
;
...
@@ -205,7 +205,7 @@ function filter_jmol_replace_callback($matches) {
...
@@ -205,7 +205,7 @@ function filter_jmol_replace_callback($matches) {
if
(
!
file_exists
(
$destpath
))
{
if
(
!
file_exists
(
$destpath
))
{
mkdir
(
dirname
(
$destpath
),
0755
,
true
);
mkdir
(
dirname
(
$destpath
),
0755
,
true
);
$file
->
copy_content_to
(
$destpath
);
$file
->
copy_content_to
(
$destpath
);
}
else
if
(
sha1
(
$file
->
get_content
())
!=
sha1
(
$destpath
))
{
}
else
if
(
sha1
(
$file
->
get_content
())
!=
=
sha1
_file
(
$destpath
))
{
$file
->
copy_content_to
(
$destpath
);
$file
->
copy_content_to
(
$destpath
);
}
else
{
}
else
{
// Touch file to update timestamp.
// Touch file to update timestamp.
...
...
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