Update "themeinfo" for Moodle 2.6 to use core_useragent.

You may be interested in the changes and have a look at the solution.

Update "themeinfo":
When using "theme-info" in Moodle 2.6 I got the following error message (2 messages combined into one sentence)

Error message: "get_device_cfg_var_name" || "get_device_type_list" has been deprecated, please update your code to use core_useragent instead.

To solve the issue I did the following:
Copy the ThemeInfo command to the 2.6 commands, change the namespace "Moosh\Command\Moodle26\Theme" and implement the \core_useragent calls.

Update "includes/functions.php":
Replace deprecated "context_instance_preload_sql", add "f.id" to the fields in the query in get_files.

Add "f.id" to the fields in the query in get_files because "f.contenthash" could return identical entries.