Reviewed: https://reviews.mahara.org/4336 Committed: http://gitorious.org/mahara/mahara/commit/9813cbb92d6b35ecf80f8b145a36a3e4b58a1fd1 Submitter: Aaron Wells (<email address hidden>) Branch: master
commit 9813cbb92d6b35ecf80f8b145a36a3e4b58a1fd1 Author: Robert Lyon <email address hidden> Date: Mon Mar 2 15:34:08 2015 +1300
Reducing the number of calls to Mobile_Detect->isMobile() (Bug #1427031)
We seem to be calling it on every page load - so for a page with lots of blocks it means a lot of calls.
When really we should call it once when a user first arrives as they won't be switching devices during their session.
Change-Id: Id939ad83c5acfdbcdd358691def25bd2e5f5a592 Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/4336 gitorious. org/mahara/ mahara/ commit/ 9813cbb92d6b35e cf80f8b145a36a3 e4b58a1fd1
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 9813cbb92d6b35e cf80f8b145a36a3 e4b58a1fd1
Author: Robert Lyon <email address hidden>
Date: Mon Mar 2 15:34:08 2015 +1300
Reducing the number of calls to Mobile_ Detect- >isMobile( ) (Bug #1427031)
We seem to be calling it on every page load - so for a page with lots
of blocks it means a lot of calls.
When really we should call it once when a user first arrives as they
won't be switching devices during their session.
Change-Id: Id939ad83c5acfd bcdd358691def25 bd2e5f5a592
Signed-off-by: Robert Lyon <email address hidden>