Skip to content

Commit 5eaf907

Browse files
author
JLTRY
committed
version 4.1.1
1 parent d06d42c commit 5eaf907

File tree

18 files changed

+69
-35
lines changed

18 files changed

+69
-35
lines changed

FOR_DEVELOPERS.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ This will update all xml versions (package/component/plugins)
1515
Update the README.md with new fix/features
1616
launch make
1717
this will create a attachments-<version>.zip in root directory
18-
git pull of all modifications
18+
launch make fixsha
19+
this will update the hecksums in file update_pkg.xml
20+
git push of all modifications
1921
create a release with v<version> as name
2022
upload the package file attachments-<version>.zip into this release
2123

Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
VERSION = "4.1.0"
1+
VERSION = "4.1.1"
22
VERSION2 = $(shell echo $(VERSION)|sed 's/ /-/g')
33
ZIPFILE = attachments-$(VERSION2).zip
44

5+
56
# Only set DATE if you need to force the date.
67
# (Otherwise it uses the current date.)
78
# DATE = "February 19, 2011"
@@ -74,7 +75,11 @@ fixversions:
7475

7576
revertversions:
7677
@echo "Reverting all install xml files"
77-
@find . \( -name 'defines.php' -o -name 'help.rst' -o -name '*.xml' ! -name 'default.xml' ! -name 'metadata.xml' ! -name 'config.xml' \) -exec git checkout {} \;
78+
@find . \( -name 'AttachmentsDefines.php' -o -name 'help.rst' -o -name '*.xml' ! -name 'default.xml' ! -name 'metadata.xml' ! -name 'config.xml' \) -exec git checkout {} \;
79+
80+
fixsha:
81+
@echo "Updating update xml files with checksums"
82+
./fixsha.sh $(ZIPFILE) 'update_pkg.xml'
7883

7984
fixcopyrights:
8085
@find . \( -name '*.php' -o -name '*.ini' -o -name '*.xml' \) -exec ./fixcopyright {} \;

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# attachments 4.0.4
1+
# attachments 4.1.1
22

33
## Quick Start
44

@@ -8,6 +8,12 @@ Download <a href="https://github.com/jmcameron/attachments/releases/latest" targ
88

99
Joomla 4.0+ compatible also with Joomla 5.0+
1010

11+
## 2025-02-07 version 4.1.1
12+
13+
- improve help pages for english/french
14+
- Check if $attachment_id[$i] exists [#103](/../../pull/103)
15+
- Add download link to be able to view attachement in a popup or download it [#102](/../../pull/102)
16+
1117
## 2025-01-01 version 4.1.0
1218

1319
- Make filename safe adapt {PR #23](/../../pull/23 ) for Joomla 4+ [#98](/../../pull/98)

add_attachment_btn_plugin/add_attachment.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="editors-xtd" version="4.0" method="upgrade">
33
<name>plg_editors-xtd_add_attachment_btn</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<copyright>(C) 2007-2024 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>

attachments_component/attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="component" version="4.0" method="upgrade">
33
<name>com_attachments</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>http://joomlacode.org/gf/project/attachments3/</authorUrl>

attachments_component/site/src/Helper/AttachmentsDefines.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ class AttachmentsDefines
2727
{
2828
/** The Attachments extension version number
2929
*/
30-
public static $ATTACHMENTS_VERSION = '4.1.0';
30+
public static $ATTACHMENTS_VERSION = '4.1.1';
3131

3232
/** The Attachments extension version date
3333
*/
34-
public static $ATTACHMENTS_VERSION_DATE = 'January 1, 2025';
34+
public static $ATTACHMENTS_VERSION_DATE = 'February 7, 2025';
3535

3636
/** Project URL
3737
*/

attachments_finder_plugin/attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<extension type="plugin" group="finder" method="upgrade">
33
<name>plg_finder_attachments</name>
44
<author>Jonathan M. Cameron</author>
5-
<creationDate>January 1, 2025</creationDate>
5+
<creationDate>February 7, 2025</creationDate>
66
<copyright>(C) 2024 Jonathan M. Cameron</copyright>
77
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
88
<authorEmail>[email protected]</authorEmail>
99
<authorUrl>https://github.com/jmcameron/attachments</authorUrl>
10-
<version>4.1.0</version>
10+
<version>4.1.1</version>
1111
<description>ATTACH_ATTACHMENTS_FINDER_PLUGIN_DESCRIPTION</description>
1212
<namespace path="src">JMCameron\Plugin\Finder\Attachments</namespace>
1313
<files>

attachments_for_content/attachments_for_content.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="attachments" version="2.5" method="upgrade">
33
<name>plg_attachments_for_content</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>http://joomlacode.org/gf/project/attachments/</authorUrl>

attachments_plugin/attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="content" version="4.0" method="upgrade">
33
<name>plg_content_attachments</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>http://joomlacode.org/gf/project/attachments/</authorUrl>

attachments_plugin_framework/framework.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="attachments" version="4.0" method="upgrade">
33
<name>plg_attachments_plugin_framework</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>http://joomlacode.org/gf/project/attachments/</authorUrl>

attachments_quickicon_plugin/attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="quickicon" version="4.0" method="upgrade">
33
<name>plg_quickicon_attachments</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<copyright>(C) 2007-2018 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>

attachments_search/attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="search" version="4.0" method="upgrade">
33
<name>plg_search_attachments</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<authorEmail>[email protected]</authorEmail>
88
<authorUrl>http://joomlacode.org/gf/project/attachments/</authorUrl>

fixsha.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Get the release version number
4+
ZIPFILE=$1
5+
UPDATEFILE=$(find . -name $2 | tr -d '\n')
6+
7+
echo "fixsha : $UPDATEFILE with sha256 of $1";
8+
9+
SHA256=$(sha256sum $1 | cut -f 1 -d ' ' | tr -d '\n' | tr '[a-z]' '[A-Z]')
10+
echo "SHA256:$SHA256"
11+
12+
SHA384=$(sha384sum $1 | cut -f 1 -d ' ' | tr -d '\n' | tr '[a-z]' '[A-Z]')
13+
echo "SHA384:$SHA384"
14+
15+
SHA512=$(sha512sum $1 | cut -f 1 -d ' ' | tr -d '\n' | tr '[a-z]' '[A-Z]')
16+
echo "SHA512:$SHA512"
17+
18+
19+
sed -i 's%<sha256>.*</sha256>%<sha256>'$SHA256'</sha256>%g' $UPDATEFILE
20+
sed -i 's%<sha384>.*</sha384>%<sha384>'$SHA384'</sha384>%g' $UPDATEFILE
21+
sed -i 's%<sha512>.*</sha512>%<sha512>'$SHA512'</sha512>%g' $UPDATEFILE

insert_attachments_id_token_btn_plugin/insert_attachments_id_token.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="editors-xtd" version="4.0" method="upgrade">
33
<name>plg_editors-xtd_insert_attachments_id_token_btn</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<copyright>(C) 2007-2024 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>

insert_attachments_token_btn_plugin/insert_attachments_token.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="editors-xtd" version="4.0" method="upgrade">
33
<name>plg_editors-xtd_insert_attachments_token_btn</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<copyright>(C) 2007-2024 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>

pkg_attachments/pkg_attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<extension type="package" version="4.0" method="upgrade">
33
<name>pkg_attachments</name>
44
<packagename>attachments</packagename>
5-
<version>4.1.0</version>
6-
<creationDate>January 1, 2025</creationDate>
5+
<version>4.1.1</version>
6+
<creationDate>February 7, 2025</creationDate>
77
<copyright>(C) 2007-2024 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
99
<author>Jonathan M. Cameron</author>

pkg_attachments/update_pkg.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<element>pkg_attachments</element>
77
<type>package</type>
88
<client>site</client>
9-
<version>4.1.0</version>
9+
<version>4.1.1</version>
1010
<infourl title="Attachments">https://github.com/jmcameron/attachments/</infourl>
1111
<downloads>
12-
<downloadurl type="full" format="zip">https://github.com/jmcameron/attachments/releases/download/v4.1.0/attachments-4.1.0.zip</downloadurl>
12+
<downloadurl type="full" format="zip">https://github.com/jmcameron/attachments/releases/download/v4.1.1/attachments-4.1.1.zip</downloadurl>
1313
</downloads>
1414
<tags>
1515
<tag>Stable</tag>
@@ -18,8 +18,8 @@
1818
<maintainerurl>https://github.com/jmcameron/attachments</maintainerurl>
1919
<php_minimum>8.0</php_minimum>
2020
<targetplatform name="joomla" version="(4\.[01234]|5\.[0123])"/>
21-
<sha256>A4F273ADA42AAAB5782E7E1F4752F52ECF79F0C08C8F39F316FE66D66F4F33B2</sha256>
22-
<sha384>7B839D0976ABE6C133DF77200A3E7214F639E9E1CCC36905ABB178F2D5667CBA37A6160C840BAA95912BA67568692A1A</sha384>
23-
<sha512>D61F7FD1BACE6141FACF3C19DAAD249B755C3AE33ACC81747CFD62148F063BA101971142576E4B785931713156EB73EC0ECDF5D8BA95E7C2EFDB15D7B75F5A28</sha512>
21+
<sha256>E24ABD26A47335A46803913173BB8FB495F0A102E92D9357B3C15409C24CDBAF</sha256>
22+
<sha384>ED179DF3F630FF94B28DB066480EB84684C92D5E69C8BE9F9C2647F673716749914168BCF3199F81A602C3340C2DA35F</sha384>
23+
<sha512>9252E3355BBA35E82955296CCB9464F20AC6CC0735B3A5CF48D53F8FEEE42BD3577739EAC9B2C9538C4C8ADE5A46E6EAE52CF18953BBCF91503590658726E8A9</sha512>
2424
</update>
2525
</updates>

show_attachments_in_editor_plugin/show_attachments.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="plugin" group="system" version="4.0" method="upgrade">
33
<name>plg_system_show_attachments_in_editor</name>
4-
<version>4.1.0</version>
5-
<creationDate>January 1, 2025</creationDate>
4+
<version>4.1.1</version>
5+
<creationDate>February 7, 2025</creationDate>
66
<author>Jonathan M. Cameron</author>
77
<copyright>(C) 2011-2024 Jonathan M. Cameron. All rights reserved.</copyright>
88
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>

0 commit comments

Comments
 (0)