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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-09-18 04:27:34 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-09-18 04:27:34 +0300
commit782768d1ecca400bfb5fafb1c06ef04e82a68a98 (patch)
tree785b975712f9ebd8a1172311d4858539d90d444c /plugins/TwoFactorAuth
parent8b02bafc87275733b79f3189cd2962c4fbff64a0 (diff)
Use correct NotYetInstalledException when Matomo is not yet installed (#14823)
Diffstat (limited to 'plugins/TwoFactorAuth')
-rw-r--r--plugins/TwoFactorAuth/Validator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TwoFactorAuth/Validator.php b/plugins/TwoFactorAuth/Validator.php
index e1260bd0df..77b4bb2714 100644
--- a/plugins/TwoFactorAuth/Validator.php
+++ b/plugins/TwoFactorAuth/Validator.php
@@ -9,7 +9,7 @@
namespace Piwik\Plugins\TwoFactorAuth;
use Piwik\Common;
-use Piwik\Exception\InvalidRequestParameterException;
+use Piwik\Exception\NotYetInstalledException;
use Piwik\Piwik;
use Piwik\Session\SessionFingerprint;
use Exception;
@@ -46,7 +46,7 @@ class Validator
Piwik::checkUserIsNotAnonymous();
if (!SettingsPiwik::isPiwikInstalled()) {
- throw new InvalidRequestParameterException('Matomo is not set up yet');
+ throw new NotYetInstalledException('Matomo is not set up yet');
}
}