"MDL-13766, fixed function call"
authorDongsheng Cai <unoter@gmail.com>
Tue, 3 Aug 2010 07:16:33 +0000 (07:16 +0000)
committerDongsheng Cai <unoter@gmail.com>
Tue, 3 Aug 2010 07:16:33 +0000 (07:16 +0000)
admin/repository.php

index e0fb6dd..feed580 100644 (file)
@@ -50,7 +50,7 @@ if (($action == 'edit') || ($action == 'new')) {
         $configs = call_user_func(array($classname, 'get_type_option_names'));
         $plugin = $repositorytype->get_typename();
         // looking for instance to edit plugin name
-        $instanceoptions = $classname::get_instance_option_names();
+        $instanceoptions = call_user_func(array($classname, 'get_instance_option_names'));
         if (empty($instanceoptions)) {
             $params = array();
             $params['type'] = $plugin;