Skip to content

Commit

Permalink
BUGFIX: set the current theme after the default init is run rather th…
Browse files Browse the repository at this point in the history
…an the default one
  • Loading branch information
Will Rossiter committed Nov 16, 2010
1 parent 1d4fba2 commit be2dfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/MobileSiteControllerExtension.php
Expand Up @@ -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)
Expand Down

0 comments on commit be2dfed

Please sign in to comment.