diff options
author | sgiehl <stefan@piwik.org> | 2014-01-16 18:07:19 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-01-16 18:07:19 +0400 |
commit | ab3f264ff13a4887d577190ac8a5287b168d863e (patch) | |
tree | cd03d4e6897ac5457cdf47bb3d57bfdd14887293 /core/Common.php | |
parent | 0c40ae911a3753ff7bddc68047b8cd46a735b57b (diff) |
code cleanup; moved require of Socials.php to seperate method
Diffstat (limited to 'core/Common.php')
-rw-r--r-- | core/Common.php | 15 |
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 |