Skip to content

Commit 60a579b

Browse files
v2.5.1
1 parent 42a5e02 commit 60a579b

File tree

7 files changed

+14
-18
lines changed

7 files changed

+14
-18
lines changed

astroid/astroid-framework/astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<libraryname>astroid</libraryname>
55
<author>JoomDev</author>
66
<creationDate>Oct 2020</creationDate>
7-
<version>2.5.0</version>
7+
<version>2.5.1</version>
88
<url>https://www.astroidframework.com</url>
99
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
1010
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

astroid/astroid-framework/framework/library/astroid/Component/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
if (ASTROID_JOOMLA_VERSION == 3) {
1717
\JLoader::register('ModMenuHelper', JPATH_SITE . '/modules/mod_menu/helper.php');
18-
\JLoader::registerAlias('MenuHelper', 'ModMenuHelper');
18+
\JLoader::registerAlias('MenuHelper', '\\ModMenuHelper');
1919
} else {
2020
\JLoader::registerAlias('MenuHelper', '\\Joomla\\Module\\Menu\\Site\\Helper\\MenuHelper');
2121
}

astroid/astroid-framework/framework/library/astroid/Helper/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class Constants
1515
{
16-
public static $astroid_version = '2.5.0';
16+
public static $astroid_version = '2.5.1';
1717
public static $fontawesome_version = '5.14.0';
1818
public static $animatecss_version = '3.7.0';
1919
public static $forum_link = 'https://www.joomdev.com/forum/astroid-framework';

astroid/astroid-framework/framework/library/astroid/Helper/Overrides.php

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,26 @@
1818
class Overrides
1919
{
2020
public static $rename = [
21-
'2.5.0' => [
22-
'com_content/form',
23-
'layouts/joomla/form',
24-
'layouts/joomla/content/icons/email.php',
25-
'layouts/joomla/content/icons/print_popup.php',
26-
'layouts/joomla/content/icons/print_screen.php'
27-
]
21+
'com_content/form',
22+
'layouts/joomla/form',
23+
'layouts/joomla/content/icons/email.php',
24+
'layouts/joomla/content/icons/print_popup.php',
25+
'layouts/joomla/content/icons/print_screen.php'
2826
];
2927

3028
public static function fix()
3129
{
32-
$version = Framework::getVersion();
33-
34-
if (isset(self::$rename[$version])) self::rename(self::$rename[$version]);
30+
self::rename();
3531
}
3632

37-
public static function rename($files)
33+
public static function rename()
3834
{
3935
$templates = Template::getAstroidTemplates(true);
4036
$templates = array_unique(array_column($templates, 'template'));
4137

4238
foreach ($templates as $template) {
4339
$path = JPATH_ROOT . '/templates/' . $template . '/html/';
44-
foreach ($files as $file) {
40+
foreach (self::$rename as $file) {
4541
if (is_dir($path . $file)) {
4642
Folder::move($path . $file, $path . (str_replace(basename($file), basename($file) . '-' . date('Y-m-d'), $file)));
4743
} else if (file_exists($path . $file)) {

astroid/astroid-framework/plugins/astroid/astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>Astroid Plugin</name>
44
<author>JoomDev</author>
55
<creationDate>Oct 2020</creationDate>
6-
<version>2.5.0</version>
6+
<version>2.5.1</version>
77
<url>https://www.astroidframework.com</url>
88
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
99
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

astroid/astroid-template-zero/templateDetails.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<authorUrl>https://www.joomdev.com</authorUrl>
88
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
99
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
10-
<version>2.5.0</version>
10+
<version>2.5.1</version>
1111
<description>TPL_ASTROID_XML_DESCRIPTION</description>
1212
<updateservers>
1313
<server type="extension" name="astroid_framework" priority="1">https://cdn.joomdev.com/updates/astroid_template_zero.xml</server>

pkg_astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<packagerurl>https://www.astroidframework.com</packagerurl>
77
<author>JoomDev</author>
88
<creationDate>Oct 2020</creationDate>
9-
<version>2.5.0</version>
9+
<version>2.5.1</version>
1010
<url>https://www.joomdev.com</url>
1111
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
1212
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

0 commit comments

Comments
 (0)