mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
improved coding style of last commit
This commit is contained in:
parent
fe3c5daede
commit
9815cceee8
@ -389,7 +389,7 @@ function resource_pluginfile($course, $cm, $context, $filearea, $args, $forcedow
|
||||
$fullpath = rtrim("/$context->id/mod_resource/$filearea/0/$relativepath", '/');
|
||||
do {
|
||||
if (!$file = $fs->get_file_by_hash(sha1($fullpath))) {
|
||||
if ($file = $fs->get_file_by_hash(sha1("$fullpath/.")) and $file->is_directory()) {
|
||||
if ($fs->get_file_by_hash(sha1("$fullpath/."))) {
|
||||
if ($file = $fs->get_file_by_hash(sha1("$fullpath/index.htm"))) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user