Loading Modules from and extension

Max Kanat-Alexander mkanat at bugzilla.org
Tue Jan 4 18:24:19 UTC 2011


On 01/04/2011 03:41 AM, rojanu wrote:
> Is it possible to load a module from an extension in User.pm
> 
> I have tried
> 
> use Bugzilla::Extension::HiddenNameAndEmail::Util;
> 
> but checksetup.pl complains about not finding the "Can't locate
> Bugzilla/Extension/HiddenNameAndEmail/Util.pm".

	In Bugzilla::User, before you load your module, do:

	BEGIN { Bugzilla->extensions }

	-Max
-- 
http://www.bugzillasource.com/
Competent, Friendly Bugzilla, Perl, and IT Services



More information about the developers mailing list