MDL-33322: fixed strict standards
authorMarina Glancy <marina@moodle.com>
Fri, 1 Jun 2012 02:53:10 +0000 (10:53 +0800)
committerRossiani Wijaya <rwijaya@moodle.com>
Fri, 1 Jun 2012 02:53:10 +0000 (10:53 +0800)
repository/draftfiles_manager.php

index b3f1dde..0bbc3a3 100644 (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);