diff options
author | Yorhel <git@yorhel.nl> | 2011-02-04 11:56:01 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-02-04 11:56:01 +0100 |
commit | db52af50c29c57fc1179629071ccd5d81baf2506 (patch) | |
tree | 688cd4218c7ebfa55a4da173f91957ba5daac88f | |
parent | 7a5283dc5cb35aca7cefe3348d8697e29aedda15 (diff) |
jsgen.pl: Fixed bug with referencing to the wrong cookie_defaults
-rwxr-xr-x | util/jsgen.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl index 75a77504..112bfb7e 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -8,7 +8,7 @@ use Encode 'encode_utf8'; use Cwd 'abs_path'; eval { require JavaScript::Minifier::XS; }; -our($ROOT, %S); +our($ROOT, %S, %O); BEGIN { ($ROOT = abs_path $0) =~ s{/util/jsgen\.pl$}{}; } require $ROOT.'/data/global.pl'; @@ -101,7 +101,7 @@ sub jsgen { l10n_load(); my $common = ''; $common .= sprintf "rlist_status = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{rlist_status}}; - $common .= sprintf "cookie_prefix = '%s';\n", $S{cookie_prefix}; + $common .= sprintf "cookie_prefix = '%s';\n", $O{cookie_prefix}; $common .= sprintf "age_ratings = [ %s ];\n", join ',', @{$S{age_ratings}}; $common .= sprintf "languages = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{languages}}; $common .= sprintf "platforms = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{platforms}}; |