Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-01-16 18:07:19 +0400
committersgiehl <stefan@piwik.org>2014-01-16 18:07:19 +0400
commitab3f264ff13a4887d577190ac8a5287b168d863e (patch)
treecd03d4e6897ac5457cdf47bb3d57bfdd14887293 /core/Common.php
parent0c40ae911a3753ff7bddc68047b8cd46a735b57b (diff)
code cleanup; moved require of Socials.php to seperate method
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/Common.php b/core/Common.php
index 26dec8e25e..3312a83569 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -750,6 +750,21 @@ class Common
}
/**
+ * Returns list of social networks by URL
+ *
+ * @see core/DataFiles/Socials.php
+ *
+ * @return array Array of ( URL => Social Network Name )
+ */
+ public static function getSocialUrls()
+ {
+ require_once PIWIK_INCLUDE_PATH . '/core/DataFiles/Socials.php';
+
+ $searchEngines = $GLOBALS['Piwik_socialUrl'];
+ return $searchEngines;
+ }
+
+ /**
* Returns list of provider names
*
* @see core/DataFiles/Providers.php