diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-05-12 01:13:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 01:13:02 +0300 |
commit | 8012467e95430c08342bbfa8510d1f60b9ea317f (patch) | |
tree | 304cb83b11460c325e5c58c488b178438f37a5f4 /plugins | |
parent | b348ca2d9d977dad03a2f031f8bedc1f31930a94 (diff) |
remove support for old format of adding custom search engines (#15938)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Referrers/SearchEngine.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/Referrers/SearchEngine.php b/plugins/Referrers/SearchEngine.php index dd6c043dcf..c2aed7910c 100644 --- a/plugins/Referrers/SearchEngine.php +++ b/plugins/Referrers/SearchEngine.php @@ -65,30 +65,10 @@ class SearchEngine extends Singleton Piwik::postEvent('Referrer.addSearchEngineUrls', array(&$this->definitionList)); - $this->convertLegacyDefinitions(); - return $this->definitionList; } /** - * @deprecated remove in 3.0 - */ - protected function convertLegacyDefinitions() - { - foreach ($this->definitionList as $url => $definition) { - if (!array_key_exists('name', $definition) && isset($definition[0]) && isset($definition[1])) { - $this->definitionList[$url] = array( - 'name' => $definition[0], - 'params' => $definition[1], - 'backlink' => @$definition[2], - 'charsets' => @$definition[3] - ); - } - } - - } - - /** * Parses the given YML string and caches the resulting definitions * * @param string $yml |