diff --git a/plugins/Referrers/functions.php b/plugins/Referrers/functions.php
index 12a175fbbd0bd05d253e715063f3d04896276d51..3a38cb1e5f71a861095e70fa136d9143f8a75167 100644
--- a/plugins/Referrers/functions.php
+++ b/plugins/Referrers/functions.php
@@ -84,7 +84,7 @@ function getSocialsLogoFromUrl($domain)
     $filePattern = 'plugins/Referrers/images/socials/%s.png';
 
     foreach ($socialNetworks as $domainKey => $name) {
-        if ($social == $socialNetworks[$domainKey] && file_exists(PIWIK_DOCUMENT_ROOT . '/' . sprintf($filePattern, $domainKey))) {
+        if ($social == $socialNetworks[$domainKey] && file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($filePattern, $domainKey))) {
             return sprintf($filePattern, $domainKey);
         }
     }