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:
authorStefan Giehl <stefan@matomo.org>2020-01-16 03:26:34 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2020-01-16 03:26:34 +0300
commit7c059ecb5e433dec3538398c8413c45cd68a0c0b (patch)
tree026af3bafbd20f69b1aca757151c1d51a3bdfcd6 /plugins/Login
parent8e2db8e1206e6778f3198558b05c25d655fc99e6 (diff)
Removes some methods deprecated for Matomo 4 (#15386)
* Removes deprecated Plugin.getListHooksRegistered and uses Plugin.registerEvents instead * Removes deprecated method Piwik\Piwik::doAsSuperUser * Remove deprecated SettingsPiwik::isPiwikInstalled and use SettingsPiwik::isMatomoInstalled instead
Diffstat (limited to 'plugins/Login')
-rw-r--r--plugins/Login/config/test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Login/config/test.php b/plugins/Login/config/test.php
index cf83aaabdb..30717d24d5 100644
--- a/plugins/Login/config/test.php
+++ b/plugins/Login/config/test.php
@@ -6,7 +6,7 @@ return array(
\Piwik\Access::doAsSuperUser(function () use ($settings, $c) {
if ($c->get('test.vars.bruteForceBlockIps')) {
$settings->blacklistedBruteForceIps->setValue(array('10.2.3.4'));
- } elseif (\Piwik\SettingsPiwik::isPiwikInstalled()) {
+ } elseif (\Piwik\SettingsPiwik::isMatomoInstalled()) {
$settings->blacklistedBruteForceIps->setValue(array());
}
});
@@ -26,7 +26,7 @@ return array(
// we block this IP
$detection->addFailedAttempt(\Piwik\IP::getIpFromHeader());
}
- } elseif (\Piwik\SettingsPiwik::isPiwikInstalled()) {
+ } elseif (\Piwik\SettingsPiwik::isMatomoInstalled()) {
// prevent tests from blocking other tests
$detection->deleteAll();
}