This repository was archived by the owner on Oct 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ Automatic Intro Image needs IMagick php module to be installed and enabled on yo
8
8
See https://github.com/mattiaverga/JAutomaticIntroImage/wiki for more help.
9
9
10
10
## Changelog
11
+ ### v1.3.3
12
+ * Fix: allow plugin to work in frontend
13
+
11
14
### v1.3.1
12
15
* Add support for Joomla extension updater
13
16
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class plgContentAutomaticIntroImage extends JPlugin
22
22
*
23
23
* @param string $context The context of the content being passed to the
24
24
plugin.
25
- * @param mixed $article A reference to the JTableContent object that is
25
+ * @param mixed $article The JTableContent object that is
26
26
being saved which holds the article data.
27
27
* @param boolean $isNew A boolean which is set to true if the content
28
28
is about to be created.
@@ -32,7 +32,7 @@ class plgContentAutomaticIntroImage extends JPlugin
32
32
public function onContentBeforeSave ($ context , $ article , $ isNew )
33
33
{
34
34
// Check if we're saving an article
35
- $ allowed_contexts = array ('com_content.article ' );
35
+ $ allowed_contexts = array ('com_content.article ' , ' com_content.form ' );
36
36
37
37
if (!in_array ($ context , $ allowed_contexts ))
38
38
{
Original file line number Diff line number Diff line change 6
6
<copyright >Copyright (C) 2017 Mattia Verga. All rights reserved.</copyright >
7
7
<license >GNU General Public License version 3 or later.</license >
8
8
<authorEmail >mattia.verga@tiscali.it</authorEmail >
9
- <version >1.3.2 </version >
9
+ <version >1.3.3 </version >
10
10
<description >PLG_CONTENT_AUTOMATICINTROIMAGE_XML_DESCRIPTION</description >
11
11
<files >
12
12
<filename plugin =" automaticintroimage" >automaticintroimage.php</filename >
Original file line number Diff line number Diff line change 6
6
<element >automaticintroimage</element >
7
7
<type >plugin</type >
8
8
<folder >content</folder >
9
- <version >1.3.2 </version >
9
+ <version >1.3.3 </version >
10
10
<client >site</client >
11
- <infourl title =" Automatic Intro Image plugin" >https://github.com/mattiaverga/JAutomaticIntroImage/releases/tag/1.3.2 </infourl >
11
+ <infourl title =" Automatic Intro Image plugin" >https://github.com/mattiaverga/JAutomaticIntroImage/releases/tag/1.3.3 </infourl >
12
12
<downloads >
13
- <downloadurl type =" full" format =" zip" >https://github.com/mattiaverga/JAutomaticIntroImage/archive/1.3.2 .zip</downloadurl >
13
+ <downloadurl type =" full" format =" zip" >https://github.com/mattiaverga/JAutomaticIntroImage/archive/1.3.3 .zip</downloadurl >
14
14
</downloads >
15
15
<targetplatform name =" joomla" version =" 3.[456789]" />
16
16
</update >
You can’t perform that action at this time.
0 commit comments