From 267b3a1623ebb3d9db2209adc1b14f4c882c3611 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 4 Dec 2009 13:48:52 -0800 Subject: Make the rendering of the Theme Options page consistent between the first request and any errors --- modules/gallery/controllers/admin_theme_options.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/gallery/controllers/admin_theme_options.php') diff --git a/modules/gallery/controllers/admin_theme_options.php b/modules/gallery/controllers/admin_theme_options.php index 9de54c78..6297e4aa 100644 --- a/modules/gallery/controllers/admin_theme_options.php +++ b/modules/gallery/controllers/admin_theme_options.php @@ -64,7 +64,8 @@ class Admin_Theme_Options_Controller extends Admin_Controller { url::redirect("admin/theme_options"); } else { $view = new Admin_View("admin.html"); - $view->content = $form; + $view->content = new View("admin_theme_options.html"); + $view->content->form = $form; print $view; } } -- cgit v1.2.3