projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc ancient functions as deprecated
[freeside.git]
/
FS
/
FS
/
UID.pm
diff --git
a/FS/FS/UID.pm
b/FS/FS/UID.pm
index
c725f03
..
ebda99e
100644
(file)
--- a/
FS/FS/UID.pm
+++ b/
FS/FS/UID.pm
@@
-14,7
+14,7
@@
use IO::File;
use FS::CurrentUser;
@EXPORT_OK = qw( checkeuid checkruid cgi setcgi adminsuidsetup forksuidsetup
use FS::CurrentUser;
@EXPORT_OK = qw( checkeuid checkruid cgi setcgi adminsuidsetup forksuidsetup
- preuser_setup
+ preuser_setup
load_schema
getotaker dbh datasrc getsecrets driver_name myconnect
);
getotaker dbh datasrc getsecrets driver_name myconnect
);
@@
-113,6
+113,14
@@
sub env_setup {
}
}
+sub load_schema {
+ warn "$me loading schema\n" if $DEBUG;
+ getsecrets() unless $datasrc;
+ use FS::Schema qw(reload_dbdef dbdef);
+ reload_dbdef("$conf_dir/dbdef.$datasrc")
+ unless $FS::Schema::setup_hack;
+}
+
sub db_setup {
croak "Not running uid freeside (\$>=$>, \$<=$<)\n" unless checkeuid();
sub db_setup {
croak "Not running uid freeside (\$>=$>, \$<=$<)\n" unless checkeuid();
@@
-121,10
+129,7
@@
sub db_setup {
warn "$me forksuidsetup connected to database with handle $dbh\n" if $DEBUG;
warn "$me forksuidsetup connected to database with handle $dbh\n" if $DEBUG;
- warn "$me forksuidsetup loading schema\n" if $DEBUG;
- use FS::Schema qw(reload_dbdef dbdef);
- reload_dbdef("$conf_dir/dbdef.$datasrc")
- unless $FS::Schema::setup_hack;
+ load_schema();
warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG;
warn "$me forksuidsetup deciding upon config system to use\n" if $DEBUG;
@@
-205,7
+210,7
@@
sub install_callback {
=item cgi
=item cgi
-Returns the CGI (see L<CGI>) object.
+
(Deprecated)
Returns the CGI (see L<CGI>) object.
=cut
=cut
@@
-215,9
+220,9
@@
sub cgi {
$cgi;
}
$cgi;
}
-=item cgi CGI_OBJECT
+=item
set
cgi CGI_OBJECT
-Sets the CGI (see L<CGI>) object.
+
(Deprecated)
Sets the CGI (see L<CGI>) object.
=cut
=cut