aboutsummaryrefslogtreecommitdiff
path: root/charset.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-19 11:32:46 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-19 11:32:46 +0100
commit027af11144abffdbadc2219147e0bc13ebb7ab0c (patch)
tree357b6eaeaf04ae4109b4fae79258f78ed13a51ef /charset.rb
parentb596fe35c3f2c0c28e018518eedd6458feb439ce (diff)
constant -> global variable
Diffstat (limited to 'charset.rb')
-rw-r--r--charset.rb12
1 files changed, 6 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>. #
############################################################################
-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('▾')