summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-11-02 10:47:50 -0400
committerjim-p <jimp@pfsense.org>2012-11-02 10:50:35 -0400
commit1e1e1ec8b1bf4c7bc0737c1caa82ff4f0a6a922e (patch)
tree36efab59fa4a7d2f899c7159d76121bebb737767 /etc/inc/authgui.inc
parent158f0e7de9c2b4bfb90b7f535e219a144360a51a (diff)
downloadpfsense-1e1e1ec8b1bf4c7bc0737c1caa82ff4f0a6a922e.zip
pfsense-1e1e1ec8b1bf4c7bc0737c1caa82ff4f0a6a922e.tar.gz
Make a function to get the current theme and use it everywhere rather than duplicating code or missing functions. (Fixes forced themes using the wrong theme for login screen)
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 1591c07..f87494b 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -92,7 +92,7 @@ if (!$_SESSION['Post_Login']) {
*/
function display_error_form($http_code, $desc) {
global $config, $g;
- $g['theme'] = $config['theme'];
+ $g['theme'] = get_current_theme();
if(isAjax()) {
printf(gettext('Error: %1$s Description: %2$s'), $http_code, $desc);
return;
@@ -149,7 +149,7 @@ function display_error_form($http_code, $desc) {
function display_login_form() {
require_once("globals.inc");
global $config, $g;
- $g['theme'] = $config['theme'];
+ $g['theme'] = get_current_theme();
unset($input_errors);
OpenPOWER on IntegriCloud