MDL-33322: fixed strict standards

This commit is contained in:
Marina Glancy 2012-06-01 10:53:10 +08:00 committed by Rossiani Wijaya
parent 4239150a60
commit 3c693ff4d2

View File

@ -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);