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:
authorKate Butler <kate@innocraft.com>2019-11-28 05:27:27 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-11-28 05:27:27 +0300
commit5d0cfbc7dc786d7977d8ece0995fa32512ca7d9c (patch)
tree82da815bca0904ad02a4e6a536dabb6c3b0644aa /plugins/SitesManager/API.php
parent7c1ddeae4f02c4fdd3bcb53db09f9d217dd0647f (diff)
Remove the SiteSpecificUserAgentExcludeEnabled setting (#15089)
Diffstat (limited to 'plugins/SitesManager/API.php')
-rw-r--r--plugins/SitesManager/API.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php
index 909d694f23..1066aaf258 100644
--- a/plugins/SitesManager/API.php
+++ b/plugins/SitesManager/API.php
@@ -60,7 +60,6 @@ class API extends \Piwik\Plugin\API
const OPTION_SEARCH_KEYWORD_QUERY_PARAMETERS_GLOBAL = 'SitesManager_SearchKeywordParameters';
const OPTION_SEARCH_CATEGORY_QUERY_PARAMETERS_GLOBAL = 'SitesManager_SearchCategoryParameters';
const OPTION_EXCLUDED_USER_AGENTS_GLOBAL = 'SitesManager_ExcludedUserAgentsGlobal';
- const OPTION_SITE_SPECIFIC_USER_AGENT_EXCLUDE_ENABLE = 'SitesManager_EnableSiteSpecificUserAgentExclude';
const OPTION_KEEP_URL_FRAGMENTS_GLOBAL = 'SitesManager_KeepURLFragmentsGlobal';
/**
@@ -1066,11 +1065,11 @@ class API extends \Piwik\Plugin\API
* only the global user agent substrings (see @setGlobalExcludedUserAgents) will be used.
*
* @return bool
+ * @deprecated Will be removed in Matomo 4.0
*/
public function isSiteSpecificUserAgentExcludeEnabled()
{
- Piwik::checkUserHasSomeAdminAccess();
- return (bool)Option::get(self::OPTION_SITE_SPECIFIC_USER_AGENT_EXCLUDE_ENABLE);
+ return true;
}
/**
@@ -1078,16 +1077,10 @@ class API extends \Piwik\Plugin\API
* websites.
*
* @param bool $enabled
+ * @deprecated Will be removed in Matomo 4.0
*/
public function setSiteSpecificUserAgentExcludeEnabled($enabled)
{
- Piwik::checkUserHasSuperUserAccess();
-
- // update option
- Option::set(self::OPTION_SITE_SPECIFIC_USER_AGENT_EXCLUDE_ENABLE, $enabled);
-
- // make sure tracker cache will reflect change
- Cache::deleteTrackerCache();
}
/**