Skip to content

Commit ca70df1

Browse files
authored
Merge pull request #56 from techjoomla/master
Merge `master` into `release-1.1.0`
2 parents 982500e + 76b0865 commit ca70df1

8 files changed

Lines changed: 32 additions & 21 deletions

File tree

changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
#### Legend
4+
5+
- Bug Fix (-)
6+
- Feature Addition (+)
7+
- Improvement (^)
8+
9+
## com_activitystream v1.0.3
10+
11+
##### ^ Improvements:
12+
- #169696 PHP8 compatibilty fixes

plugins/api/tjactivity/tjactivity.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="3.0" type="plugin" group="api" method="upgrade">
33
<name>com_api_tjactivity</name>
4-
<version>1.0.1</version>
5-
<creationDate>8th Feb 2019</creationDate>
4+
<version>1.0.3</version>
5+
<creationDate>22nd Jul 2021</creationDate>
66
<author>Techjoomla</author>
77
<authorEmail>extensions@techjoomla.com</authorEmail>
88
<authorUrl>https://techjoomla.com</authorUrl>
9-
<copyright>Copyright (C) 2016 - 2019 Techjoomla. All rights reserved.</copyright>
9+
<copyright>Copyright (C) 2016 - 2021 Techjoomla. All rights reserved.</copyright>
1010
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
1111
<description>PLG_API_TJACTIVITY_DESCRIPTION</description>
1212
<languages>

src/activitystream.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="component" version="3.0" method="upgrade">
33
<name>com_activitystream</name>
4-
<!-- The following elements are optional and free of formatting constraints -->
5-
<creationDate>8th Feb 2019</creationDate>
4+
<creationDate>22nd Jul 2021</creationDate>
65
<author>Techjoomla</author>
76
<authorEmail>extensions@techjoomla.com</authorEmail>
87
<authorUrl>https://techjoomla.com</authorUrl>
9-
<copyright>Copyright (C) 2016 - 2019 Techjoomla. All rights reserved.</copyright>
8+
<copyright>Copyright (C) 2016 - 2021 Techjoomla. All rights reserved.</copyright>
109
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
11-
<!-- The version string is recorded in the components table -->
12-
<version>1.0.1</version>
13-
14-
<!-- The description is optional and defaults to the name -->
10+
<version>1.0.3</version>
1511
<description>COM_ACTIVITYSTREAM_DESCRIPTION</description>
1612
<scriptfile>script.activitystream.php</scriptfile>
1713
<install>
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CREATE TABLE IF NOT EXISTS `#__tj_activities` (
2-
`id` INT(11) NOT NULL AUTO_INCREMENT,
2+
`id` INT(11) NOT NULL AUTO_INCREMENT,
33
`actor` text(900),
44
`actor_id` text(900),
55
`object` text(900),
@@ -8,9 +8,9 @@ CREATE TABLE IF NOT EXISTS `#__tj_activities` (
88
`target_id` text(900),
99
`type` text(900),
1010
`client` varchar(20),
11-
`template` text(900),
11+
`template` text,
1212
`default_theme` varchar(20),
13-
`formatted_text` text(900),
13+
`formatted_text` text,
1414
`access` tinyint(2) DEFAULT 1,
1515
`state` tinyint(2) DEFAULT 1,
1616
`location` text(900),
@@ -19,6 +19,4 @@ CREATE TABLE IF NOT EXISTS `#__tj_activities` (
1919
`created_date` datetime DEFAULT NULL,
2020
`updated_date` datetime DEFAULT NULL,
2121
PRIMARY KEY (`id`)
22-
)
23-
DEFAULT CHARSET =utf8 AUTO_INCREMENT =1;
24-
22+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE `#__tj_activities` MODIFY `template` text;
2+
ALTER TABLE `#__tj_activities` MODIFY `formatted_text` text;
3+
ALTER TABLE `#__tj_activities` ENGINE = InnoDB;

src/admin/tables/activity.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ public function check()
6565
}
6666
}
6767

68+
$errors = isset($errors) && is_array($errors) ? $errors : [];
69+
6870
if (count($errors))
6971
{
70-
$this->setError(implode($errors, ', '));
72+
$this->setError(implode(', ', $errors));
7173

7274
return false;
7375
}

src/plugins/privacy/activitystream/activitystream.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="3.9" type="plugin" group="privacy" method="upgrade">
33
<name>plg_privacy_activitystream</name>
4-
<version>1.0.1</version>
5-
<creationDate>8th Feb 2019</creationDate>
4+
<version>1.0.3</version>
5+
<creationDate>22nd Jul 2021</creationDate>
66
<author>Techjoomla</author>
77
<authorEmail>extensions@techjoomla.com</authorEmail>
88
<authorUrl>https://techjoomla.com</authorUrl>
9-
<copyright>Copyright (C) 2016 - 2019 Techjoomla. All rights reserved.</copyright>
9+
<copyright>Copyright (C) 2016 - 2021 Techjoomla. All rights reserved.</copyright>
1010
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
1111
<description>PLG_PRIVACY_ACTIVITYSTREAM_XML_DESCRIPTION</description>
1212
<files>

src/script.activitystream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function installSqlFiles($parent)
231231
{
232232
$query = trim($query);
233233

234-
if ($query != '' && $query{0} != '#')
234+
if ($query != '' && $query[0] != '#')
235235
{
236236
$db->setQuery($query);
237237

0 commit comments

Comments
 (0)