Disable mobile page

Discussion forum about Anuko Time Tracker
Post Reply
adminhp
Posts: 18
Joined: Fri Oct 21, 2011 5:10 pm

Disable mobile page

Post by adminhp » Mon Dec 14, 2015 10:19 pm

I need to be able to display the full site when users access timetracker from their mobile devices.
Currently, it will check to see whether the device is running a mobile OS and then display the mobile page.
I would like to disable this so that it will be similar to a browser from a computer where it will show all details after logging in.
Any help is greatly appreciated.

Thanks.

tkie
Posts: 97
Joined: Sat Jul 02, 2011 2:31 pm

Re: Disable mobile page

Post by tkie » Tue Dec 15, 2015 2:20 am

Comment out line #46 in index.php, which determines whether access is done via a mobile browser.

Code: Select all

// $mobileBrowser = ...

if ($mobileBrowser) {
Or add $mobileBrowser = false; line before a redirect, which happens in the if block below.

Code: Select all

$mobileBrowser = ...
$mobileBrowser = false;

if ($mobileBrowser) {
Hope it helps.

adminhp
Posts: 18
Joined: Fri Oct 21, 2011 5:10 pm

Re: Disable mobile page

Post by adminhp » Wed Oct 04, 2017 9:28 pm

Thank you for your help.

Post Reply