mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-33322: fixed strict standards
This commit is contained in:
parent
4239150a60
commit
3c693ff4d2
@ -333,7 +333,8 @@ default:
|
||||
|
||||
$home_url->param('action', 'browse');
|
||||
$home_url->param('draftpath', $file->filepath);
|
||||
$foldername = trim(array_pop(explode('/', trim($file->filepath, '/'))), '/');
|
||||
$filepathchunks = explode('/', trim($file->filepath, '/'));
|
||||
$foldername = trim(array_pop($filepathchunks), '/');
|
||||
echo html_writer::link($home_url, $foldername);
|
||||
|
||||
$home_url->param('draftpath', $file->filepath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user