Skip to content

Commit

Permalink
Merge branch '5.x-dev' into fix-url-params-extraction-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazyuki authored Jul 2, 2024
2 parents fac0dde + a391178 commit 279cc04
Show file tree
Hide file tree
Showing 35 changed files with 1,605 additions and 214 deletions.
1 change: 1 addition & 0 deletions .github/workflows/matomo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
redis-service: true
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: ${{ matrix.php == '7.2' }}
testomatio: ${{ secrets.TESTOMATIO_INTEGRATION }}
Javascript:
runs-on: ubuntu-20.04
timeout-minutes: 15
Expand Down
115 changes: 58 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion core/API/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Piwik\API;

use Exception;
use Piwik\Http\BadRequestException;
use Piwik\Common;
use Piwik\Container\StaticContainer;
use Piwik\Context;
Expand Down Expand Up @@ -615,7 +616,7 @@ private function loadMethodMetadata($class, $method)
private function checkMethodExists($className, $methodName)
{
if (!$this->isMethodAvailable($className, $methodName)) {
throw new Exception(Piwik::translate('General_ExceptionMethodNotFound', array($methodName, $className)));
throw new BadRequestException(Piwik::translate('General_ExceptionMethodNotFound', [$methodName, $className]));
}
}

Expand Down
Loading

0 comments on commit 279cc04

Please sign in to comment.