Использовать таблицу плагинов для хранения глобальных настроек блока.

Issue #273 closed
Oleg Sychev repo owner created an issue

Originally reported on Google Code with ID 273

Одно из замечаний при проверке плагина мудловцами
"I noticed that your plugin is storing its settings in the mdl_config table rather
than the mdl_config_plugins table. In order to avoid what I call $CFG bloat, it is
recommended to use get_config to pull the data out of mdl_config_plugins. I would suggest
modifying your settings.php and changing things like block_supervised_session_duration
to block_supervised/session_duration. "

Должно быть несложно сделать - там главным образом изменяется наименование элементов
в settings.php и доступ к настройкам - вместо $CFG используется функция get_config
или что-то в этом роде.

Желательно сделать быстро, в течении 2-3х дней. У меня могут быть с этим небольшие
проблемы, Андрей - сможете?

Reported by oasychev on 2014-03-30 11:37:35

Comments (3)

  1. Oleg Sychev reporter
    Спасибо.
    Не забывайте вытягивать мои изменения - я вчера требуемую версию Moodle подправил например.
    

    Reported by oasychev on 2014-03-30 17:15:26

  2. Log in to comment