Made language loading optional (set langdir to undef to disable it).
This commit is contained in:
parent
e4a8729cdd
commit
92d5f9cfdc
@ -105,7 +105,8 @@ sub new {
|
||||
my $obj = bless $self, $class;
|
||||
|
||||
# Load the language definitions
|
||||
$obj -> load_language() or return undef;
|
||||
$obj -> load_language() or return undef
|
||||
if($self -> {"langdir"} && $self -> {"lang"});
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user