Wrong path in defaults.php


I noticed a small bug with latest (10.0.10) version of owncloud.
I created a theme and the css and images are correctly displayed.
But my defaults.php file is ignored.

After a small glance at the code, I found out that the file /lib/private/legacy/defaults.php was searching for my theme file (defaults.php) in the wrong place.
It is looking for this file in /my_theme instead of /apps/my_theme
line79 : $defaultsPath = OC::$SERVERROOT . '/' . $themePath . '/defaults.php';

As I don’t want to modify the code for integrity purposes, my solution was to create a link from /apps/my_theme to /my_theme

Is there something I am missing, or is it a (small) bug ?

Best regards,