Skip to content

Commit 9bdbd99

Browse files
Merge branch '5.x-dev' into dev-19555
2 parents 3bcda02 + f3fbfd1 commit 9bdbd99

35 files changed

+196
-72
lines changed

β€Ž.github/workflows/matomo-tests.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
adapter: 'PDO_MYSQL'
6262
mysql-engine: 'Mariadb'
6363
mysql-version: '11.4'
64-
- php: '8.4'
64+
- php: '8.5'
6565
adapter: 'MYSQLI'
6666
mysql-engine: 'Mysql'
6767
mysql-version: '8.0'

β€Žcore/Http.phpβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,17 @@ public static function sendHttpRequestBy(
624624
fwrite($file, $response);
625625
}
626626
fclose($handle);
627+
628+
if (function_exists('http_get_last_response_headers')) {
629+
$http_response_header = http_get_last_response_headers();
630+
}
627631
} else {
628632
$response = @file_get_contents($aUrl, 0, $ctx);
629633

634+
if (function_exists('http_get_last_response_headers')) {
635+
$http_response_header = http_get_last_response_headers();
636+
}
637+
630638
// try to get http status code from response headers
631639
if (!empty($http_response_header) && preg_match('~^HTTP/(\d\.\d)\s+(\d+)(\s*.*)?~', implode("\n", $http_response_header), $m)) {
632640
$status = (int)$m[2];

β€Žcore/Plugin/API.phpβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function confirmCurrentUserPassword(
129129
}
130130

131131
if (empty($passwordConfirmation)) {
132-
throw new Exception(Piwik::translate('UsersManager_ConfirmWithPassword'));
132+
throw new Exception(Piwik::translate('UsersManager_ConfirmWithReAuthentication'));
133133
}
134134

135135
try {

β€Žplugins/CorePluginsAdmin/CorePluginsAdmin.phpβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public function getClientSideTranslationKeys(&$translations)
170170
$translations[] = 'General_Cancel';
171171
$translations[] = 'UsersManager_ConfirmThisChange';
172172
$translations[] = 'UsersManager_ConfirmWithPassword';
173+
$translations[] = 'UsersManager_ConfirmWithReAuthentication';
173174
$translations[] = 'UsersManager_YourCurrentPassword';
174175
$translations[] = 'PrivacyManager_PolicyControlledSetting';
175176
$translations[] = 'PrivacyManager_ViewPrivacyComplianceOverview';

β€Žplugins/CorePluginsAdmin/tests/Integration/ApiTest.phpβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function setUp(): void
6363
public function testSetSystemSettingsThrowsIfNoPasswordConfirmation()
6464
{
6565
$this->expectException(\Exception::class);
66-
$this->expectExceptionMessage('UsersManager_ConfirmWithPassword');
66+
$this->expectExceptionMessage('UsersManager_ConfirmWithReAuthentication');
6767

6868
$settingValues = $this->testSystemSettingsPayload;
6969
\Piwik\Plugins\CorePluginsAdmin\API::getInstance()->setSystemSettings($settingValues);

β€Žplugins/CorePluginsAdmin/vue/dist/CorePluginsAdmin.umd.jsβ€Ž

Lines changed: 41 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žplugins/CorePluginsAdmin/vue/dist/CorePluginsAdmin.umd.min.jsβ€Ž

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)