View | Details | Raw Unified | Return to bug 16306
Collapse All | Expand All

(-)a/C4/Context.pm (-1 / +14 lines)
Lines 1293-1298 sub IsSuperLibrarian { Link Here
1293
    return ($userenv->{flags}//0) % 2;
1293
    return ($userenv->{flags}//0) % 2;
1294
}
1294
}
1295
1295
1296
=head2 setCommandlineEnvironment
1297
1298
Sets the Koha environment for command line scripts.
1299
1300
=cut
1301
1302
sub setCommandlineEnvironment {
1303
	my ($class) = @_;
1304
1305
	C4::Context->interface('commandline'); #Set interface for logger and friends
1306
	C4::Context->_new_userenv('commandline');
1307
	C4::Context::set_userenv(1,0,0,'commandline',$0, '', '', {}, '', '', '');
1308
}
1309
1296
=head2 interface
1310
=head2 interface
1297
1311
1298
Sets the current interface for later retrieval in any Perl module
1312
Sets the current interface for later retrieval in any Perl module
1299
- 

Return to bug 16306