Add a BEGIN section to load things in the correct order.

pull/1458/head
Isaac Connor 2016-05-03 10:21:01 -04:00
parent 30f34a6f49
commit 9406a2337f
1 changed files with 7 additions and 0 deletions

View File

@ -81,6 +81,13 @@ our @EXPORT = ( @EXPORT_OK );
our $VERSION = $ZoneMinder::Base::VERSION;
BEGIN {
require ZoneMinder::Config;
require ZoneMinder::Database;
ZoneMinder::Config::zmConfigLoad();
ZoneMinder::Database::zmDbConnect();
}
1;
__END__