1. Create a file resource, give it a name and a description. Click Add File and upload a file (say an image). Works
2. Create another file resource. Give it a name and a description. Click Add File and choose local. Navigate to find the file you uploaded previously. Doesn't work...
"Notice: Undefined variable: fs in /var/www/moodle2/repository/local/lib.php on line 193
Fatal error: Call to a member function get_file() on a non-object in /......./moodle2/repository/local/lib.php on line 193"