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 {