diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index dc4e8c9e081f37d0cb249c6946df8b493e79050d..78f08b50f556b0945ecb9d69a7c036e241ca5a9d 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -139,7 +139,7 @@ function getEntity($element=false, $shared=0)
  */
 function getBrowserInfo($user_agent)
 {
-	include_once DOL_DOCUMENT_ROOT.'/core/class/mobiledetect.class.php';
+	include_once DOL_DOCUMENT_ROOT.'/includes/mobiledetect/mobiledetect.class.php';
 
 	$name='unknown';
 	$version='';
diff --git a/htdocs/core/class/mobiledetect.class.php b/htdocs/includes/mobiledetect/mobiledetect.class.php
similarity index 100%
rename from htdocs/core/class/mobiledetect.class.php
rename to htdocs/includes/mobiledetect/mobiledetect.class.php