Changeset 20543


Ignore:
Timestamp:
02/04/13 11:02:05 (7 years ago)
Author:
patdenice
Message:

bug:2835
ability detect mobile theme earlier, before plugin load

Location:
trunk/include
Files:
2 edited

Legend:

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

    r20325 r20543  
    16221622function get_device() 
    16231623{ 
     1624  if (session_id() == '') 
     1625  { 
     1626    session_start(); 
     1627  } 
    16241628  $device = pwg_get_session_var('device'); 
    16251629 
     
    16581662  } 
    16591663 
     1664  if (session_id() == '') 
     1665  { 
     1666    session_start(); 
     1667  } 
     1668 
    16601669  if (isset($_GET['mobile'])) 
    16611670  { 
  • trunk/include/user.inc.php

    r19703 r20543  
    2727if (isset($_COOKIE[session_name()])) 
    2828{ 
    29   session_start(); 
     29  if (session_id() == '') 
     30  { 
     31    session_start(); 
     32  } 
    3033  if (isset($_GET['act']) and $_GET['act'] == 'logout') 
    3134  { // logout 
Note: See TracChangeset for help on using the changeset viewer.