#523. Fixed call undefined function get_plugins error.