Ticket #4336: skin.diff
| File skin.diff, 706 bytes (added by , 19 years ago) |
|---|
-
includes/skin.php
old new 16 16 // Detect different types of browsers and set the theme accordingly. 17 17 if (isMobileUser()) { 18 18 // Browser is mobile but does it accept HTML? If not, use the WML theme. 19 $_SESSION['tmpl'] = browserAcceptsMediaType(array('text/html', '\*/\*')) 20 ? 'wap' 21 : 'wml'; 19 $_SESSION['tmpl'] = getMobileUserAgent(); 20 22 21 // Make sure the skin is set to the appropriate phone-template type 23 22 $_SESSION['skin'] = $_SESSION['tmpl']; 24 23 define('skin', $_SESSION['skin']);
