diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-05 18:06:25 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-05 18:06:25 -0800 |
commit | cadd958339323f5fcf4c2b438f7a5e311e477d52 (patch) | |
tree | 9c1d4c94d68bc5aa193a4c6cc163c6874f6f6ab1 /boot.php | |
parent | b06c52553d1fee69062b533a46b80190d9b4b350 (diff) | |
download | volse-hubzilla-cadd958339323f5fcf4c2b438f7a5e311e477d52.tar.gz volse-hubzilla-cadd958339323f5fcf4c2b438f7a5e311e477d52.tar.bz2 volse-hubzilla-cadd958339323f5fcf4c2b438f7a5e311e477d52.zip |
remove mobile_detect (outdated and unmaintainable)
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 29 |
1 files changed, 1 insertions, 28 deletions
@@ -38,7 +38,6 @@ require_once('include/datetime.php'); require_once('include/language.php'); require_once('include/nav.php'); require_once('include/permissions.php'); -require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/features.php'); require_once('include/taxonomy.php'); require_once('include/channel.php'); @@ -788,9 +787,7 @@ class App { public static $theme_info = array(); public static $is_sys = false; public static $nav_sel; - public static $is_mobile = false; - public static $is_tablet = false; - public static $comanche; + public static $comanche; public static $channel_links; @@ -961,14 +958,6 @@ class App { self::$pager['total'] = 0; /* - * Detect mobile devices - */ - - $mobile_detect = new Mobile_Detect(); - self::$is_mobile = $mobile_detect->isMobile(); - self::$is_tablet = $mobile_detect->isTablet(); - - /* * register template engines */ @@ -2198,22 +2187,6 @@ function construct_page() { } } - if(App::$is_mobile || App::$is_tablet) { - if(isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) { - $link = z_root() . '/toggle_mobile?f=&address=' . curPageURL(); - } - else { - $link = z_root() . '/toggle_mobile?f=&off=1&address=' . curPageURL(); - } - if ((isset($_SESSION) && $_SESSION['mobile_theme'] !='' && $_SESSION['mobile_theme'] !='---' ) || - (isset(App::$config['system']['mobile_theme']) && !isset($_SESSION['mobile_theme']))) { - App::$page['footer'] .= replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array( - '$toggle_link' => $link, - '$toggle_text' => t('toggle mobile') - )); - } - } - $page = App::$page; $profile = App::$profile; |