From 48151fd02ecf4f9c4db53434365810fa2f0126cb Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 27 Apr 2004 13:58:54 +0000 Subject: [PATCH] Whoops, forgot part of the optimisation. --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index b0ced0c45a..8cb41db88c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -931,13 +931,13 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta= // Add a stylesheet for the HTML editor $meta = "\n$meta\n"; - // Character set could be optimised by carrying the charset variable around in $USER if (!empty($CFG->unicode)) { $encoding = "utf-8"; } else if (!empty($SESSION->encoding)) { $encoding = $SESSION->encoding; } else { $encoding = get_string("thischarset"); + $SESSION->encoding = $encoding; } $meta = "\n$meta\n"; -- 2.39.5