From 027af11144abffdbadc2219147e0bc13ebb7ab0c Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Tue, 19 Jan 2010 11:32:46 +0100 Subject: constant -> global variable --- charset.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'charset.rb') diff --git a/charset.rb b/charset.rb index fa77164..a279b6f 100644 --- a/charset.rb +++ b/charset.rb @@ -17,13 +17,13 @@ # along with dudle. If not, see . # ############################################################################ -USEUTF = true -USEUTF = false if $cgi.user_agent =~ /.*MSIE [56]\..*/ -USEUTF = false if $cgi.cookies["ascii"][0] -USEUTF = true if $cgi.include?("utf") -USEUTF = false if $cgi.include?("ascii") +$USEUTF = true +$USEUTF = false if $cgi.user_agent =~ /.*MSIE [56]\..*/ +$USEUTF = false if $cgi.cookies["ascii"][0] +$USEUTF = true if $cgi.include?("utf") +$USEUTF = false if $cgi.include?("ascii") -if USEUTF +if $USEUTF NOSORT = CGI.escapeHTML('▾▴') SORT = CGI.escapeHTML('▴') REVERSESORT = CGI.escapeHTML('▾') -- cgit v1.2.3