mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
portfoli MDL-21699 workaround for php 5.3 reference changes in call_user_func
This commit is contained in:
parent
8fb18ca939
commit
b8824f38e4
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ final class portfolio_admin_form extends moodleform {
|
|||
// let the plugin add the fields they want (either statically or not)
|
||||
if (portfolio_static_function($this->plugin, 'has_admin_config')) {
|
||||
if (!$this->instance) {
|
||||
portfolio_static_function($this->plugin, 'admin_config_form', $mform);
|
||||
require_once($CFG->libdir . '/portfolio/plugin.php');
|
||||
require_once($CFG->dirroot . '/portfolio/' . $this->plugin . '/lib.php');
|
||||
call_user_func(array('portfolio_plugin_' . $this->plugin, 'admin_config_form'), $mform);
|
||||
} else {
|
||||
$this->instance->admin_config_form($mform);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue