Minor - replacing $_configuration['root_web'] with api_get_path()
Using the "use" keyword.
Adding createMyFilesFolder() in order to create the my_files folder see BT#6977