Skip to content

Commit

Permalink
Fix mobile theme definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsaylor committed May 3, 2014
1 parent 3985eea commit 284bf71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
// Configure::write('Site.theme', 'default');

// Mobile themes
Configure::write('Site.mobile_theme', Configure::read('Env.Site.mobile_theme') ?: 'mobile');
Configure::write('Site.mobile_theme', Configure::read('Env.Site.mobile_theme') ?: 'Mobile');
Configure::write('Site.jquery_mobile_theme', Configure::read('Env.Site.jquery_mobile_theme') ?: 'b');

// Analytics
Expand Down
4 changes: 1 addition & 3 deletions app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ protected function checkSsl() {

protected function setupMobile() {
if($this->isMobile()) {
$this->theme = Configure::read('Site.mobile_theme') ?
Configure::read('Site.mobile_theme') :
'mobile';
$this->theme = Configure::read('Site.mobile_theme');
$this->layout = $this->RequestHandler->isAjax() && $this->isMobileDialog ? 'dialog' : 'mobile';
$this->autoLayout = true;
$this->autoRender = true;
Expand Down

0 comments on commit 284bf71

Please sign in to comment.