Changeset 15587

Show
Ignore:
Timestamp:
06/07/12 15:20:00 (12 months ago)
Author:
plg
Message:

bug 2649 fixed: do not load mobile theme when using web API

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r13234 r15587  
    193193else 
    194194{ // Classic template 
    195   $theme = mobile_theme() ? $conf['mobile_theme'] : $user['theme']; 
     195  $theme = script_basename() != 'ws' and mobile_theme() ? $conf['mobile_theme'] : $user['theme']; 
    196196  $template = new Template(PHPWG_ROOT_PATH.'themes', $theme ); 
    197197}