From 2bc211264399c0aca5051bd572acb99d62784b97 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 21 Jun 2022 14:07:27 +0200 Subject: [PATCH] related to #1428 hide banner when on ios mobile device --- admin/photos_add_direct.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/photos_add_direct.php b/admin/photos_add_direct.php index fe4ea9c18..8cc68380d 100644 --- a/admin/photos_add_direct.php +++ b/admin/photos_add_direct.php @@ -65,8 +65,10 @@ SELECT COUNT(*) ;'; list($nb_images) = pwg_db_fetch_row(pwg_query($query)); + include_once(PHPWG_ROOT_PATH.'include/mdetect.php'); + $uagent_obj = new uagent_info(); // To see the mobile app promote, the account must have 2 weeks ancient, 3 albums created and 30 photos uploaded - $template->assign("PROMOTE_MOBILE_APPS", (strtotime($register_date) < strtotime('2 weeks ago') and $nb_cats >= 3 and $nb_images >= 30)); + $template->assign("PROMOTE_MOBILE_APPS", (!$uagent_obj->DetectIos() and strtotime($register_date) < strtotime('2 weeks ago') and $nb_cats >= 3 and $nb_images >= 30)); } else {