Skip to content

Commit

Permalink
Prepare 3.9.26 release
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner committed Apr 11, 2021
1 parent 443f593 commit 6c7b17c
Show file tree
Hide file tree
Showing 49 changed files with 139 additions and 20 deletions.
2 changes: 1 addition & 1 deletion administrator/manifests/files/joomla.xml
Expand Up @@ -6,7 +6,7 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2005 - 2020 Open Source Matters. All rights reserved</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>3.9.26-dev</version>
<version>3.9.26</version>
<creationDate>April 2021</creationDate>
<description>FILES_JOOMLA_XML_DESCRIPTION</description>

Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_latest/mod_latest.xml
Expand Up @@ -73,6 +73,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
Expand Up @@ -37,6 +37,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_logged/mod_logged.xml
Expand Up @@ -48,6 +48,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_login/mod_login.xml
Expand Up @@ -41,6 +41,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_menu/mod_menu.xml
Expand Up @@ -104,6 +104,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
Expand Up @@ -34,6 +34,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_popular/mod_popular.xml
Expand Up @@ -63,6 +63,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
Expand Up @@ -29,6 +29,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_quickicon/mod_quickicon.xml
Expand Up @@ -36,6 +36,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_sampledata/mod_sampledata.xml
Expand Up @@ -30,6 +30,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>
</fieldset>
</fields>
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_stats_admin/mod_stats_admin.xml
Expand Up @@ -77,6 +77,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_status/mod_status.xml
Expand Up @@ -93,6 +93,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_submenu/mod_submenu.xml
Expand Up @@ -26,6 +26,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_title/mod_title.xml
Expand Up @@ -26,6 +26,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_toolbar/mod_toolbar.xml
Expand Up @@ -26,6 +26,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/modules/mod_version/mod_version.xml
Expand Up @@ -53,6 +53,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/isis/error.php
Expand Up @@ -51,7 +51,7 @@
// Logo file
if ($params->get('logoFile'))
{
$logo = JUri::root() . $params->get('logoFile');
$logo = htmlspecialchars(JUri::root() . $params->get('logoFile'), ENT_QUOTES, 'UTF-8');
}
else
{
Expand Down
37 changes: 37 additions & 0 deletions libraries/src/Form/Rule/ModuleLayoutRule.php
@@ -0,0 +1,37 @@
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace Joomla\CMS\Form\Rule;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Form\FormRule;

/**
* Form Rule class for the Joomla Platform.
*
* @since 3.9.26
*/
class ModuleLayoutRule extends FormRule
{
/**
* The regular expression to use in testing a module layout field value.
*
* A valid module layout field value consists of
* - optionally a template name with only characters, numbers, hypens and
* underscores, which can also be just "_" for layouts provided by the
* module, followed by a colon
* - the base name of the layout file, not starting with a dot and with
* only characters, numbers, dots and hypens but no underscores (see
* method "getInput" of the "ModuleLayout" field).
*
* @var string
* @since 3.9.26
*/
protected $regex = '^([A-Za-z0-9_-]+:)?[A-Za-z0-9-][A-Za-z0-9\.-]*$';
}
15 changes: 12 additions & 3 deletions libraries/src/Helper/ModuleHelper.php
Expand Up @@ -302,11 +302,20 @@ public static function getLayoutPath($module, $layout = 'default')
$defaultLayout = $temp[1] ?: 'default';
}

// Build the template and base path for the layout
$tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php';
$bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php';
$dPath = JPATH_BASE . '/modules/' . $module . '/tmpl/default.php';

try
{
// Build the template and base path for the layout
$tPath = \JPath::check(JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php');
$bPath = \JPath::check(JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php');
}
catch (\Exception $e)
{
// On error fallback to the default path
return $dPath;
}

// If the template has a layout override use it
if (file_exists($tPath))
{
Expand Down
10 changes: 5 additions & 5 deletions libraries/src/Version.php
Expand Up @@ -60,7 +60,7 @@ final class Version
* @var string
* @since 3.8.0
*/
const EXTRA_VERSION = 'dev';
const EXTRA_VERSION = '';

/**
* Release version.
Expand All @@ -78,15 +78,15 @@ final class Version
* @since 3.5
* @deprecated 4.0 Use separated version constants instead
*/
const DEV_LEVEL = '26-dev';
const DEV_LEVEL = '26';

/**
* Development status.
*
* @var string
* @since 3.5
*/
const DEV_STATUS = 'Development';
const DEV_STATUS = 'Stable';

/**
* Build number.
Expand All @@ -111,15 +111,15 @@ final class Version
* @var string
* @since 3.5
*/
const RELDATE = '7-April-2021';
const RELDATE = '13-April-2021';

/**
* Release time.
*
* @var string
* @since 3.5
*/
const RELTIME = '22:51';
const RELTIME = '15:00';

/**
* Release timezone.
Expand Down
1 change: 1 addition & 0 deletions modules/mod_articles_archive/mod_articles_archive.xml
Expand Up @@ -38,6 +38,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
Expand Up @@ -127,6 +127,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_articles_category/mod_articles_category.xml
Expand Up @@ -564,6 +564,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_articles_latest/mod_articles_latest.xml
Expand Up @@ -97,6 +97,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
3 changes: 2 additions & 1 deletion modules/mod_articles_news/mod_articles_news.xml
Expand Up @@ -64,7 +64,7 @@
description="MOD_ARTICLES_NEWS_FIELD_IMAGES_ARTICLE_DESC"
default="none"
>
<option value="intro">MOD_ARTICLES_NEWS_OPTION_INTROIMAGE</option>
<option value="intro">MOD_ARTICLES_NEWS_OPTION_INTROIMAGE</option>
<option value="full">MOD_ARTICLES_NEWS_OPTION_FULLIMAGE</option>
<option value="none">JNO</option>
</field>
Expand Down Expand Up @@ -223,6 +223,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_articles_popular/mod_articles_popular.xml
Expand Up @@ -128,6 +128,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_banners/mod_banners.xml
Expand Up @@ -118,6 +118,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_breadcrumbs/mod_breadcrumbs.xml
Expand Up @@ -83,6 +83,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_custom/mod_custom.xml
Expand Up @@ -51,6 +51,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_feed/mod_feed.xml
Expand Up @@ -148,6 +148,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_finder/mod_finder.xml
Expand Up @@ -161,6 +161,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_footer/mod_footer.xml
Expand Up @@ -26,6 +26,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_languages/mod_languages.xml
Expand Up @@ -163,6 +163,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="MOD_LANGUAGES_FIELD_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_login/mod_login.xml
Expand Up @@ -143,6 +143,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_menu/mod_menu.xml
Expand Up @@ -128,6 +128,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_random_image/mod_random_image.xml
Expand Up @@ -69,6 +69,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions modules/mod_related_items/mod_related_items.xml
Expand Up @@ -50,6 +50,7 @@
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
validate="moduleLayout"
/>

<field
Expand Down

0 comments on commit 6c7b17c

Please sign in to comment.