Virtualmin plugin API - how to use get_template in feature_setup function?

2 posts / 0 new
Last post
#1 Sun, 01/16/2011 - 15:55
milosh

Virtualmin plugin API - how to use get_template in feature_setup function?

Hi,

I am working on Virtualmin plugin to have a configurable server options in Plugin Options page. The documentation claims, that I can access my template_imput parameters with get_template function (see: https://www.virtualmin.com/documentation/developer/plugins).

However I get an error message: Undefined subroutine &nginx::get_template called at /usr/share/webmin/nginx/virtual_feature.pl.

I have used: local $tmpl = &get_template($_[0]->{'template'});

What would be the correct way to access my parameter?

Mon, 01/17/2011 - 16:15
JamieCameron

You will need to use &virtual_server::get_template , as that function is defined in the Virtualmin (virtual-server) module.

''

Topic locked