Skip to content

Commit

Permalink
Merge branch '5.2-dev' into fix-44294
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored Nov 9, 2024
2 parents dfc56ea + 30a64b3 commit 9c78b5c
Show file tree
Hide file tree
Showing 133 changed files with 1,070 additions and 269 deletions.
13 changes: 6 additions & 7 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins/content/finder/* @hackwar
plugins/finder/* @hackwar

# Release Tools
build.xml @fancyFranci
build/build.php @rdeutz
build/bump.php @rdeutz
build/deleted_file_check.php @rdeutz
Expand All @@ -17,12 +16,12 @@ libraries/src/Installer/* @rdeutz
libraries/src/Updater/* @rdeutz

# Automated Testing
tests/* @hackwar @fancyFranci
tests/Unit/* @rdeutz @fancyFranci
.appveyor.yml @rdeutz @hackwar @fancyFranci
.drone.yml @rdeutz @hackwar @fancyFranci
phpunit.xml.dist @rdeutz @hackwar @fancyFranci
phpunit-pgsql.xml.dist @rdeutz @hackwar @fancyFranci
tests/* @hackwar @laoneo
tests/Unit/* @rdeutz @laoneo
.appveyor.yml @rdeutz @hackwar @laoneo
.drone.yml @rdeutz @hackwar @laoneo
phpunit.xml.dist @rdeutz @hackwar @laoneo
phpunit-pgsql.xml.dist @rdeutz @hackwar @laoneo

# Workflow
administrator/components/com_workflow/* @bembelimen @hleithner
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
Joomla! CMS™
====================

The Joomla! 5.2 branch is under heavy development and not all links in this document are available yet
------------------------------------------------------------------------------------------------------

Build Status

| Drone-CI | AppVeyor | PHP | Node | npm |
|------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [![Build Status](https://ci.joomla.org/api/badges/joomla/joomla-cms/status.svg?branch=5.2-dev)](https://ci.joomla.org/joomla/joomla-cms) | [![Build status](https://ci.appveyor.com/api/projects/status/ru6sxal8jmfckvjc/branch/5.2-dev?svg=true)](https://ci.appveyor.com/project/release-joomla/joomla-cms) | [![PHP](https://img.shields.io/badge/PHP-V8.1.0-green)](https://www.php.net/) | [![node-lts](https://img.shields.io/badge/Node-V18.0-green)](https://nodejs.org/en/) | [![npm](https://img.shields.io/badge/npm-v9.6.7-green)](https://nodejs.org/en/) |
| [![Build Status](https://ci.joomla.org/api/badges/joomla/joomla-cms/status.svg?branch=5.2-dev)](https://ci.joomla.org/joomla/joomla-cms) | [![Build status](https://ci.appveyor.com/api/projects/status/ru6sxal8jmfckvjc/branch/5.2-dev?svg=true)](https://ci.appveyor.com/project/release-joomla/joomla-cms) | [![PHP](https://img.shields.io/badge/PHP-V8.1.0-green)](https://www.php.net/) | [![node-lts](https://img.shields.io/badge/Node-V20.0-green)](https://nodejs.org/en/) | [![npm](https://img.shields.io/badge/npm-v10.1.0-green)](https://nodejs.org/en/) |

Overview
---------------------
Expand Down
3 changes: 0 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
Joomla! CMS™

The Joomla! 5.2 branch is under heavy development and not all links in this document are available yet
------------------------------------------------------------------------------------------------------

1- Overview
* This is a Joomla! 5.x installation/upgrade package.
* Joomla! Official site: https://www.joomla.org
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UPDATE `#__assets` SET `title` = 'PUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Publish';
UPDATE `#__assets` SET `title` = 'UNPUBLISH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Unpublish';
UPDATE `#__assets` SET `title` = 'TRASH' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Trash';
UPDATE `#__assets` SET `title` = 'ARCHIVE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Archive';
UPDATE `#__assets` SET `title` = 'FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Feature';
UPDATE `#__assets` SET `title` = 'UNFEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Unfeature';
UPDATE `#__assets` SET `title` = 'PUBLISH_AND_FEATURE' WHERE `name` LIKE 'com_content.transition.%' AND `title` = 'Publish & Feature';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UPDATE "#__assets" SET "title" = 'PUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Publish';
UPDATE "#__assets" SET "title" = 'UNPUBLISH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Unpublish';
UPDATE "#__assets" SET "title" = 'TRASH' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Trash';
UPDATE "#__assets" SET "title" = 'ARCHIVE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Archive';
UPDATE "#__assets" SET "title" = 'FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Feature';
UPDATE "#__assets" SET "title" = 'UNFEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Unfeature';
UPDATE "#__assets" SET "title" = 'PUBLISH_AND_FEATURE' WHERE "name" LIKE 'com_content.transition.%' AND "title" = 'Publish & Feature';
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function display($tpl = null): void
throw new GenericDataException(implode("\n", $errors), 500);
}

if (!\count($this->data) && $this->state->get('filter.search') === '') {
if (!\count($this->data) && ($this->state->get('filter.search') === null || $this->state->get('filter.search') === '')) {
$this->setLayout('emptystate');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

namespace Joomla\Component\Content\Administrator\Model;

// phpcs:disable PSR1.Files.SideEffects
use Joomla\Database\QueryInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,21 @@
*/
class StepController extends FormController
{
/**
* Gets the URL arguments to append to a list redirect.
*
* @return string The arguments to append to the redirect URL.
*
* @since __DEPLOY_VERSION__
*/
protected function getRedirectToListAppend()
{
$append = parent::getRedirectToListAppend();
$tourId = $this->app->getUserState('com_guidedtours.tour_id');
if (!empty($tourId)) {
$append .= '&tour_id=' . $tourId;
}

return $append;
}
}
23 changes: 19 additions & 4 deletions administrator/components/com_installer/src/Model/UpdateModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Joomla\Database\Exception\ExecutionFailureException;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;
use Joomla\Filesystem\Path;
use Joomla\Utilities\ArrayHelper;

// phpcs:disable PSR1.Files.SideEffects
Expand Down Expand Up @@ -358,10 +359,24 @@ public function update($uids, $minimumStability = Updater::STABILITY_STABLE)
$update->set('extra_query', $updateSiteInstance->extra_query);
}

$this->preparePreUpdate($update, $instance);

// Install sets state and enqueues messages
$res = $this->install($update);
try {
$this->preparePreUpdate($update, $instance);

// Install sets state and enqueues messages
$res = $this->install($update);
} catch (\Throwable $t) {
$res = false;

Factory::getApplication()->enqueueMessage(
Text::sprintf(
'COM_INSTALLER_UPDATE_ERROR',
$instance->name,
$t->getMessage(),
(JDEBUG ? str_replace(JPATH_ROOT, 'JROOT', Path::clean($t->getFile())) . ':' . $t->getLine() : '')
),
'error'
);
}

if ($res) {
$instance->delete($uid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,14 @@ protected function getTypeOptionsFromManifest($component)
$request['sub'] = (string) $attributes->sub;
}

$o->request = array_filter($request, 'strlen');
$o->request = array_filter($request, function ($value) {
if (\is_array($value)) {
return !empty($value);
}

return \strlen($value);
});

$options[] = new CMSObject($o);

// Do not repeat the default view link (index.php?option=com_abc).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
Expand All @@ -24,7 +23,6 @@
];
$published = (int) $this->state->get('filter.published');
$clientId = (int) $this->state->get('filter.client_id');
$menuType = Factory::getApplication()->getUserState('com_menus.items.menutype', '');

if ($clientId == 1) {
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
Expand All @@ -34,23 +32,22 @@
}
?>
<div class="p-3">
<?php if (strlen($menuType) && $menuType != '*') : ?>
<?php if ($clientId != 1) : ?>
<div class="row">
<?php if ($clientId != 1) : ?>
<div class="row">
<?php if (Multilanguage::isEnabled()) : ?>
<div class="form-group col-md-6">
<div class="controls">
<?php echo LayoutHelper::render('joomla.html.batch.language', []); ?>
</div>
</div>
<?php endif; ?>
<div class="form-group col-md-6">
<div class="controls">
<?php echo LayoutHelper::render('joomla.html.batch.language', []); ?>
<?php echo LayoutHelper::render('joomla.html.batch.access', []); ?>
</div>
</div>
<?php endif; ?>
<div class="form-group col-md-6">
<div class="controls">
<?php echo LayoutHelper::render('joomla.html.batch.access', []); ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="row">
<?php if ($published >= 0) : ?>
<div class="form-group col-md-6">
Expand Down Expand Up @@ -82,17 +79,12 @@
<p><?php echo Text::_('COM_MENUS_SELECT_MENU_FILTER_NOT_TRASHED'); ?></p>
<?php endif; ?>
</div>
<?php else : ?>
<div class="row">
<p><?php echo Text::_('COM_MENUS_SELECT_MENU_FIRST'); ?></p>
</div>
<?php endif; ?>
</div>
<?php if ((strlen($menuType) && $menuType != '*' && $clientId == 0) || ($published >= 0 && $clientId == 1)) : ?>
<div class="btn-toolbar p-3">
<joomla-toolbar-button task="item.batch" class="ms-auto">
<button type="button" class="btn btn-success"><?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?></button>
</joomla-toolbar-button>
</div>
<?php if ($clientId == 0 || ($published >= 0 && $clientId == 1)) : ?>
<div class="btn-toolbar p-3">
<joomla-toolbar-button task="item.batch" class="ms-auto">
<button type="button" class="btn btn-success"><?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?></button>
</joomla-toolbar-button>
</div>
<?php endif; ?>

8 changes: 5 additions & 3 deletions administrator/components/com_users/tmpl/captive/select.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</p>
</div>

<div class="com-users-select-methods p-2">
<div class="com-users-methods-list-method com-users-methods-list-method-name-backupcodes com-users-methods-list-method-active">
<?php foreach ($this->records as $record) :
if (!array_key_exists($record->method, $this->mfaMethods) && ($record->method != 'backupcodes')) {
continue;
Expand All @@ -48,11 +48,13 @@

$methodName = $this->getModel()->translateMethodName($record->method);
?>
<a class="com-users-method p-2 border-top border-dark bg-light d-flex flex-row flex-wrap justify-content-start align-items-center text-decoration-none gap-2 text-body"
<a class="com-users-method list-group-item-action p-2 border-top border-dark d-flex flex-row flex-wrap justify-content-start align-items-center text-decoration-none gap-2"
href="<?php echo Route::_('index.php?option=com_users&view=captive&record_id=' . $record->id)?>">
<div class="com-users-methods-list-method-image">
<img src="<?php echo Uri::root() . $this->getModel()->getMethodImage($record->method) ?>"
alt="<?php echo $this->escape(strip_tags($record->title)) ?>"
class="com-users-method-image img-fluid" />
class="img-fluid" />
</div>
<?php if (!$this->allowEntryBatching || !$allowEntryBatching) : ?>
<span class="com-users-method-title flex-grow-1 fs-5 fw-bold">
<?php if ($record->method === 'backupcodes') : ?>
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/com_installer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ COM_INSTALLER_UNINSTALL_ERROR="Error uninstalling %s."
COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="The extension \"%1$s\" (ID %2$s) is locked and cannot be uninstalled."
COM_INSTALLER_UNINSTALL_SUCCESS="Uninstalling the %s was successful."
COM_INSTALLER_UNPACK_ERROR="Failed to extract file: %s"
COM_INSTALLER_UPDATE_ERROR="Error updating: %1$s<br>%2$s<br>%3$s<br>"
COM_INSTALLER_UPDATE_FILTER_SEARCH_DESC="Search in extension name. Prefix with ID:, UID: or EID: to search for an update ID, update site ID or extension ID."
COM_INSTALLER_UPDATE_FILTER_SEARCH_LABEL="Search Extensions with Updates"
COM_INSTALLER_UPDATE_FORM_EDIT="Edit Update Site"
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/com_menus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ COM_MENUS_SELECT_A_MENUITEM="Select a Menu Item"
COM_MENUS_SELECT_MENU="- Select Menu -"
COM_MENUS_SELECT_MENU_FILTER="Select Menu"
COM_MENUS_SELECT_MENU_FILTER_NOT_TRASHED="Filter the list by a state other than trashed or clear the filter."
; Deprecated, will be removed with 6.0
COM_MENUS_SELECT_MENU_FIRST="To use batch processing, please first select a Menu in the manager."
COM_MENUS_SELECT_MENU_FIRST_EXPORT="To use export, please first select a valid Menu in the manager."
COM_MENUS_SUBMENU_ITEMS="Menu Items"
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension client="administrator" type="language" method="upgrade">
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>5.2.1</version>
<creationDate>2024-10</creationDate>
<version>5.2.2</version>
<creationDate>2024-11</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<metafile client="administrator">
<name>English (en-GB)</name>
<version>5.2.1</version>
<creationDate>2024-10</creationDate>
<version>5.2.2</version>
<creationDate>2024-11</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_guidedtours.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_GUIDEDTOURS="Guided Tours"
MOD_GUIDEDTOURS_LAYOUT_DEFAULT="Default"
MOD_GUIDEDTOURS_XML_DESCRIPTION="This module shows a list of the available guided tours."
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_latestactions.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_LATESTACTIONS="Action Logs - Latest"
MOD_LATESTACTIONS_LAYOUT_DEFAULT="Default"
MOD_LATESTACTIONS_XML_DESCRIPTION="This module shows a list of the most recent actions."
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_logged.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

MOD_LOGGED="Logged-in Users"
MOD_LOGGED_LAYOUT_DEFAULT="Default"
MOD_LOGGED_LAYOUT_DISABLED="Disabled"
MOD_LOGGED_XML_DESCRIPTION="This module shows a list of the Logged-in Users."
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_multilangstatus.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_MULTILANGSTATUS="Multilingual Status"
MOD_MULTILANGSTATUS_LAYOUT_DEFAULT="Default"
MOD_MULTILANGSTATUS_XML_DESCRIPTION="This module shows the status of the multilingual parameters and is intended to be displayed in the 'status' position."
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_POST_INSTALLATION_MESSAGES="Post Installation Messages"
MOD_POST_INSTALLATION_MESSAGES_LAYOUT_DEFAULT="Default"
MOD_POST_INSTALLATION_MESSAGES_XML_DESCRIPTION="This module shows a counter and a link to the latest post installation messages. It is only displayed when there are messages to read."
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_sampledata.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_SAMPLEDATA="Sample Data"
MOD_SAMPLEDATA_LAYOUT_DEFAULT="Default"
MOD_SAMPLEDATA_XML_DESCRIPTION="This module lets you install sample data."
5 changes: 4 additions & 1 deletion administrator/language/en-GB/mod_stats_admin.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
; Note : All ini files need to be saved as UTF-8

MOD_STATS_ADMIN="Statistics"
MOD_STATS_LAYOUT_DEFAULT="Default"
MOD_STATS_ADMIN_LAYOUT_DEFAULT="Default"
MOD_STATS_XML_DESCRIPTION="The Statistics Module shows information about your server installation together with statistics on the website users and the number of Articles in your database."

; Deprecated, will be removed with 6.0
MOD_STATS_LAYOUT_DEFAULT="Default"
1 change: 1 addition & 0 deletions administrator/language/en-GB/mod_submenu.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
; Note : All ini files need to be saved as UTF-8

MOD_SUBMENU="Administrator Dashboard Menu"
MOD_SUBMENU_LAYOUT_DEFAULT="Default"
MOD_SUBMENU_XML_DESCRIPTION="This module displays an administrator submenu module."
Loading

0 comments on commit 9c78b5c

Please sign in to comment.