yedidiaklein / moodle-repository_pixabay

Moodle Repository for Pixabay images.
GNU General Public License v3.0
1 stars 5 forks source link

Inconsistency in getting the configured API key #2

Closed mudrd8mz closed 5 years ago

mudrd8mz commented 5 years ago

There are both

$key = get_config('pixabay', 'key');

and

$key = get_config('repository_pixabay', 'key');

Is there a reason for the later one? My understanding is that repositories store their config under the name without the repository prefix. I am aware this has been badly designed but that is what we have. As far as I can tell, there is no config value stored under "repository_pixabay" plugin.

yedidiaklein commented 5 years ago

I fixed it for consistency, I still do not understand how did it worked on the setting form.