remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -22,7 +22,7 @@ use DateTime::TimeZone;
|
|||
use Scalar::Util qw( weaken );
|
||||
use Tie::IxHash;
|
||||
use WebGUI::International;
|
||||
use WebGUI::Utility qw(isIn);
|
||||
use WebGUI::Utility qw();
|
||||
use Scalar::Util qw(weaken);
|
||||
|
||||
|
||||
|
|
@ -609,7 +609,7 @@ sub getTimeZone {
|
|||
my $zone = $self->session->user->profileField('timeZone');
|
||||
$zone =~ s/ /\_/g;
|
||||
if ($zone) {
|
||||
if (isIn($zone, @zones)) {
|
||||
if ( $zone ~~ @zones ) {
|
||||
$self->session->user->{_timeZone} = $zone;
|
||||
return $zone;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ package WebGUI::Session::Http;
|
|||
|
||||
use strict;
|
||||
use Scalar::Util qw(weaken);
|
||||
use WebGUI::Utility qw(isIn);
|
||||
use WebGUI::Utility qw();
|
||||
use HTTP::Date ();
|
||||
|
||||
sub _deprecated {
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ sub getSiteURL {
|
|||
my $site = "";
|
||||
my $sitenames = $self->session->config->get("sitename");
|
||||
my ($http_host,$currentPort) = split(':', $self->session->request->env->{"HTTP_HOST"});
|
||||
if ($self->session->setting->get("hostToUse") eq "HTTP_HOST" and isIn($http_host,@{$sitenames})) {
|
||||
if ($self->session->setting->get("hostToUse") eq "HTTP_HOST" and $http_host ~~ $sitenames) {
|
||||
$site = $http_host;
|
||||
} else {
|
||||
$site = $sitenames->[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue