From be2dfed6f481de33b4c124e689a64059115af47d Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 16 Nov 2010 20:41:06 +0000 Subject: [PATCH] BUGFIX: set the current theme after the default init is run rather than the default one --- code/MobileSiteControllerExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MobileSiteControllerExtension.php b/code/MobileSiteControllerExtension.php index 9e91088..5358fca 100644 --- a/code/MobileSiteControllerExtension.php +++ b/code/MobileSiteControllerExtension.php @@ -18,7 +18,7 @@ class MobileSiteControllerExtension extends Extension { * Override the default behavior to ensure that if this is a mobile device * or if they are on the configured mobile domain then they receive the mobile site. */ - public function onBeforeInit() { + public function onAfterInit() { $config = SiteConfig::current_site_config(); // Redirect users to the full site if requested (cookie expires in 30 minutes)