From: Gervase Markham Date: Fri, 15 Jan 2016 14:42:22 +0000 (+0000) Subject: Bug 922549: Bugzilla::Migrate.pm should provide hook in load function. r=gerv. (revie... X-Git-Tag: release-5.1.1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513b4458b42e7f20ee0e57995c339c2dd6c495e7;p=thirdparty%2Fbugzilla.git Bug 922549: Bugzilla::Migrate.pm should provide hook in load function. r=gerv. (review cleanups) --- diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index 6f85885c3f..9206cc9933 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -1097,7 +1097,7 @@ This hashref contains the path and prefix for the modules to be used. =over -=item C - Path to where the modules are kept, on a typical extension this +=item C - Path to where the modules are kept; on a typical extension this would be the lib folder of the extension. =item C - Package prefix of the module to be loaded diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index ad96066f7e..40ee9c2d12 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -638,7 +638,7 @@ sub mailer_before_send { sub migrate_modules { my ($self, $args) = @_; $args->{path} = bz_locations->{'extensionsdir'} . "/Example/lib/Migrate"; - $args->{prefix} = "Bugzilla::Extension::Example:Migrate"; + $args->{prefix} = "Bugzilla::Extension::Example::Migrate"; } sub object_before_create {