Add a BEGIN section to load things in the correct order.
parent
30f34a6f49
commit
9406a2337f
|
@ -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__
|
||||
|
||||
|
|
Loading…
Reference in New Issue