Skip to content

Commit a6f3f4a

Browse files
committed
Merge branch '6.0-dev' into 6.1/maint/upmerge-251119
2 parents 12ce887 + b7d5d5a commit a6f3f4a

File tree

98 files changed

+428
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+428
-194
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
UPDATE `#__menu`
2+
SET `params` = JSON_SET(`params`,
3+
JSON_UNQUOTE(JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]')),
4+
''
5+
)
6+
WHERE JSON_VALID(`params`) = 1
7+
AND JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]') IS NOT NULL
8+
AND `type` = 'component'
9+
AND `link` = 'index.php?option=com_content&view=featured';
10+
11+
UPDATE `#__menu`
12+
SET `link` = REPLACE(`link`, '&catid[0]= ', '&catid[0]=')
13+
WHERE `type` = 'component'
14+
AND `link` LIKE 'index.php?option=com_content&view=archive&catid[0]= %';
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
UPDATE "#__menu"
2+
SET "params" = jsonb_set(
3+
"params"::jsonb,
4+
'{featured_categories}',
5+
COALESCE(
6+
(
7+
SELECT jsonb_agg(to_jsonb(CASE WHEN elem = ' ' THEN '' ELSE elem END))
8+
FROM jsonb_array_elements_text("params"::jsonb->'featured_categories') AS t(elem)
9+
),
10+
'[]'::jsonb
11+
),
12+
false
13+
)
14+
WHERE ("params"::jsonb->'featured_categories') @> '[" "]'::jsonb
15+
AND "type" = 'component'
16+
AND "link" = 'index.php?option=com_content&view=featured';
17+
18+
UPDATE "#__menu"
19+
SET "link" = REPLACE("link", '&catid[0]= ', '&catid[0]=')
20+
WHERE "type" = 'component'
21+
AND "link" LIKE 'index.php?option=com_content&view=archive&catid[0]= %';

administrator/components/com_admin/src/Model/SysinfoModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function &getInfo(): array
314314

315315
$this->info = [
316316
'version' => (new Version())->getLongVersion(),
317-
'compatpluginenabled' => PluginHelper::isEnabled('behaviour', 'compat'),
317+
'compatpluginenabled' => PluginHelper::isEnabled('behaviour', 'compat6'),
318318
'compatpluginparameters' => $this->getCompatPluginParameters(),
319319
'phpversion' => PHP_VERSION,
320320
'php' => php_uname(),
@@ -334,7 +334,7 @@ public function &getInfo(): array
334334

335335
private function getCompatPluginParameters()
336336
{
337-
$record = ExtensionHelper::getExtensionRecord('compat', 'plugin', 0, 'behaviour');
337+
$record = ExtensionHelper::getExtensionRecord('compat6', 'plugin', 0, 'behaviour');
338338

339339
if ($record) {
340340
$params = new Registry($record->params);

administrator/components/com_admin/src/Service/HTML/PhpSetting.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ public function set($val)
4747
return Text::_($val ? 'JYES' : 'JNO');
4848
}
4949

50+
/**
51+
* Method to generate a boolean message for a value
52+
*
53+
* @param boolean $val is the value set?
54+
*
55+
* @return string html code
56+
*/
57+
public function enabled($val)
58+
{
59+
return Text::_($val ? 'JENABLED' : 'JDISABLED');
60+
}
61+
5062
/**
5163
* Method to generate a string message for a value
5264
*

administrator/components/com_admin/tmpl/sysinfo/default_phpsettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<?php echo Text::_('COM_ADMIN_SESSION_AUTO_START'); ?>
110110
</th>
111111
<td>
112-
<?php echo (int) $this->phpSettings['session.auto_start']; ?>
112+
<?php echo HTMLHelper::_('phpsetting.enabled', $this->phpSettings['session.auto_start']); ?>
113113
</td>
114114
</tr>
115115
<tr>

administrator/components/com_finder/src/Indexer/Indexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function index($item, $format = 'html')
370370
} else {
371371
// Update the link.
372372
$entry->link_id = $linkId;
373-
$db->updateObject('#__finder_links', $entry, 'link_id');
373+
$db->updateObject('#__finder_links', $entry, 'link_id', true);
374374
}
375375

376376
// Set up the variables we will need during processing.

administrator/components/com_media/src/Controller/ApiController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ private function sendResponse($data = null, int $responseCode = 200)
308308
$this->app->setHeader('Content-Type', 'application/json');
309309

310310
// Set the status code for the response
311-
http_response_code($responseCode);
311+
$this->app->setHeader('status', $responseCode);
312+
313+
// Send headers before sending the data
314+
$this->app->sendHeaders();
312315

313316
// Send the data
314317
echo new JsonResponse($data);

administrator/components/com_users/src/Dispatcher/Dispatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
/**
4-
* @package Joomla.Administrator
5-
* @subpackage com_users
4+
* @package Joomla.Administrator
5+
* @subpackage com_users
66
*
77
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
8-
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
* @license GNU General Public License version 2 or later; see LICENSE.txt
99
*/
1010

1111
namespace Joomla\Component\Users\Administrator\Dispatcher;

administrator/components/com_users/src/Helper/Mfa.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
/**
4-
* @package Joomla.Administrator
5-
* @subpackage com_users
4+
* @package Joomla.Administrator
5+
* @subpackage com_users
66
*
7-
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
8-
* @license GNU General Public License version 2 or later; see LICENSE.txt
7+
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
8+
* @license GNU General Public License version 2 or later; see LICENSE.txt
99
*/
1010

1111
namespace Joomla\Component\Users\Administrator\Helper;

administrator/language/en-GB/joomla.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ PHPMAILER_RECIPIENTS_FAILED="SMTP Error! The following recipients failed: "
926926
PHPMAILER_SIGNING_ERROR="Signing error: "
927927
PHPMAILER_SMTP_CONNECT_FAILED="SMTP connect failed"
928928
PHPMAILER_SMTP_ERROR="SMTP server error: "
929+
; Deprecated, will be removed with 7.0
929930
PHPMAILER_TLS="Could not start TLS"
930931
PHPMAILER_VARIABLE_SET="Can't set or reset variable: "
931932

0 commit comments

Comments
 (0)