diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-19 11:32:46 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-19 11:32:46 +0100 |
commit | 027af11144abffdbadc2219147e0bc13ebb7ab0c (patch) | |
tree | 357b6eaeaf04ae4109b4fae79258f78ed13a51ef /charset.rb | |
parent | b596fe35c3f2c0c28e018518eedd6458feb439ce (diff) |
constant -> global variable
Diffstat (limited to 'charset.rb')
-rw-r--r-- | charset.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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('▾') |