Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c6a7c77b
Commit
c6a7c77b
authored
May 16, 2012
by
Hugh Davenport
Committed by
Gerrit Code Review
May 16, 2012
Browse files
Merge "Check image file exists in db (bug #992930)"
parents
cda6ff9a
c61c4423
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/thumb.php
View file @
c6a7c77b
...
...
@@ -71,8 +71,8 @@ switch ($type) {
}
}
if
(
$id
)
{
if
(
$path
=
get_dataroot_image_path
(
'artefact/file/profileicons'
,
get_field
(
'artefact_file_files'
,
'fileid'
,
'artefact'
,
$id
)
,
$size
))
{
if
(
$id
&&
$fileid
=
get_field
(
'artefact_file_files'
,
'fileid'
,
'artefact'
,
$id
)
)
{
if
(
$path
=
get_dataroot_image_path
(
'artefact/file/profileicons'
,
$fileid
,
$size
))
{
if
(
$mimetype
)
{
header
(
'Content-type: '
.
$mimetype
);
...
...
@@ -192,4 +192,4 @@ function readfile_exit($path) {
readfile
(
$path
);
perf_to_log
();
exit
;
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment