]> git.imager.perl.org - bse.git/blobdiff - site/cgi-bin/modules/BSE/Edit/Base.pm
expand the API to simplify working with article images and files
[bse.git] / site / cgi-bin / modules / BSE / Edit / Base.pm
index a9833a441af76af4843a7acd142d1484330385c9..e7cb5f9968ff49959781387b819fcd5b1a663d8a 100644 (file)
@@ -1,14 +1,13 @@
 package BSE::Edit::Base;
 use strict;
 
-our $VERSION = "1.000";
+our $VERSION = "1.001";
 
 # one day I might put something useful here
 sub new {
   my ($class, %parms) = @_;
 
-  $parms{cfg}
-    or die "Missing cfg parameter";
+  $parms{cfg} ||= BSE::Cfg->single;
 
   return bless \%parms, $class;
 }