Skip to content

Commit 8089eec

Browse files
authored
Merge branch '5.4-dev' into 5.3-exceptions-backend1
2 parents 8faf901 + 2ef3e3c commit 8089eec

File tree

38 files changed

+107
-99
lines changed

38 files changed

+107
-99
lines changed

administrator/components/com_fields/src/Plugin/FieldsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class FieldsPlugin extends CMSPlugin
4646
* @var \Joomla\CMS\Application\CMSApplication
4747
* @since 4.0.0
4848
*
49-
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0 use $this->getApplication() instead
49+
* @deprecated 5.4.0 will be removed in 7.0 use $this->getApplication() instead
5050
*/
5151
protected $app;
5252

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,10 @@ protected function processDates($date1, $date2, $when1, $when2)
733733
*/
734734
protected function processString($input, $lang, $mode)
735735
{
736-
if ($input === null) {
737-
$input = '';
736+
$input = trim($input ?? '');
737+
738+
if ($input === '') {
739+
return true;
738740
}
739741

740742
// Clean up the input string.

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

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -306,23 +306,29 @@ public static function addMap($linkId, $nodeId)
306306
*/
307307
public static function getBranchTitles()
308308
{
309-
$db = Factory::getDbo();
309+
static $titles;
310310

311-
// Set user variables
312-
$groups = implode(',', Factory::getUser()->getAuthorisedViewLevels());
311+
if ($titles === null) {
312+
$db = Factory::getDbo();
313313

314-
// Create a query to get the taxonomy branch titles.
315-
$query = $db->getQuery(true)
316-
->select($db->quoteName('title'))
317-
->from($db->quoteName('#__finder_taxonomy'))
318-
->where($db->quoteName('parent_id') . ' = 1')
319-
->where($db->quoteName('state') . ' = 1')
320-
->where($db->quoteName('access') . ' IN (' . $groups . ')');
314+
// Set user variables
315+
$groups = implode(',', Factory::getUser()->getAuthorisedViewLevels());
321316

322-
// Get the branch titles.
323-
$db->setQuery($query);
317+
// Create a query to get the taxonomy branch titles.
318+
$query = $db->getQuery(true)
319+
->select($db->quoteName('title'))
320+
->from($db->quoteName('#__finder_taxonomy'))
321+
->where($db->quoteName('parent_id') . ' = 1')
322+
->where($db->quoteName('state') . ' = 1')
323+
->where($db->quoteName('access') . ' IN (' . $groups . ')');
324+
325+
// Get the branch titles.
326+
$db->setQuery($query);
327+
328+
$titles = $db->loadColumn();
329+
}
324330

325-
return $db->loadColumn();
331+
return $titles;
326332
}
327333

328334
/**

administrator/language/en-GB/install.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>English (en-GB)</name>
44
<tag>en-GB</tag>
55
<version>5.4.0</version>
6-
<creationDate>2025-07</creationDate>
6+
<creationDate>2025-08</creationDate>
77
<author>Joomla! Project</author>
88
<authorEmail>[email protected]</authorEmail>
99
<authorUrl>www.joomla.org</authorUrl>

administrator/language/en-GB/langmetadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<metafile client="administrator">
33
<name>English (en-GB)</name>
44
<version>5.4.0</version>
5-
<creationDate>2025-07</creationDate>
5+
<creationDate>2025-08</creationDate>
66
<author>Joomla! Project</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>www.joomla.org</authorUrl>

administrator/manifests/files/joomla.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<authorUrl>www.joomla.org</authorUrl>
77
<copyright>(C) 2019 Open Source Matters, Inc.</copyright>
88
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
9-
<version>5.4.0-alpha4-dev</version>
10-
<creationDate>2025-07</creationDate>
9+
<version>5.4.0-beta2-dev</version>
10+
<creationDate>2025-08</creationDate>
1111
<description>FILES_JOOMLA_XML_DESCRIPTION</description>
1212

1313
<scriptfile>administrator/components/com_admin/script.php</scriptfile>

administrator/manifests/packages/pkg_en-GB.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>English (en-GB) Language Pack</name>
44
<packagename>en-GB</packagename>
55
<version>5.4.0.1</version>
6-
<creationDate>2025-07</creationDate>
6+
<creationDate>2025-08</creationDate>
77
<author>Joomla! Project</author>
88
<authorEmail>[email protected]</authorEmail>
99
<authorUrl>www.joomla.org</authorUrl>

administrator/modules/mod_latest/services/provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* The latest articles module service provider.
2121
*
22-
* @since __DEPLOY_VERSION__
22+
* @since 5.4.0
2323
*/
2424
return new class () implements ServiceProviderInterface {
2525
/**
@@ -29,7 +29,7 @@
2929
*
3030
* @return void
3131
*
32-
* @since __DEPLOY_VERSION__
32+
* @since 5.4.0
3333
*/
3434
public function register(Container $container)
3535
{

administrator/modules/mod_latest/src/Dispatcher/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Dispatcher class for mod_latest
2626
*
27-
* @since __DEPLOY_VERSION__
27+
* @since 5.4.0
2828
*/
2929
class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareInterface
3030
{

administrator/modules/mod_latest/src/Helper/LatestHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class LatestHelper
3737
*
3838
* @return mixed An array of articles, or false on error.
3939
*
40-
* @since __DEPLOY_VERSION__
40+
* @since 5.4.0
4141
*/
4242
public function getArticles(Registry $params, ArticlesModel $model, CMSApplicationInterface $app): mixed
4343
{
@@ -115,7 +115,7 @@ public function getArticles(Registry $params, ArticlesModel $model, CMSApplicati
115115
*
116116
* @return string The alternate title for the module.
117117
*
118-
* @since __DEPLOY_VERSION__
118+
* @since 5.4.0
119119
*/
120120
public function getModuleTitle(Registry $params, CMSApplicationInterface $app): string
121121
{
@@ -148,7 +148,7 @@ public function getModuleTitle(Registry $params, CMSApplicationInterface $app):
148148
*
149149
* @return mixed An array of articles, or false on error.
150150
*
151-
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0
151+
* @deprecated 5.4.0 will be removed in 7.0
152152
* Use the non-static method getArticles
153153
* Example: Factory::getApplication()->bootModule('mod_latest', 'administrator')
154154
* ->getHelper('LatestHelper')
@@ -166,7 +166,7 @@ public static function getList(Registry $params, ArticlesModel $model)
166166
*
167167
* @return string The alternate title for the module.
168168
*
169-
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0
169+
* @deprecated 5.4.0 will be removed in 7.0
170170
* Use the non-static method getModuleTitle
171171
* Example: Factory::getApplication()->bootModule('mod_latest', 'administrator')
172172
* ->getHelper('LatestHelper')

0 commit comments

Comments
 (0)