Skip to content

Commit

Permalink
Fix wrong action log link when add/edit article (#22562)
Browse files Browse the repository at this point in the history
* Fix wrong action log link when add/edit article

* Add @SInCE tag

* Correct codestyle
  • Loading branch information
joomdonation authored and Michael Babker committed Oct 9, 2018
1 parent d7622f8 commit 0589ab0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/actionlog/joomla/joomla.php
Expand Up @@ -30,6 +30,14 @@ class PlgActionlogJoomla extends ActionLogPlugin
*/
protected $loggableExtensions = array();

/**
* Context aliases
*
* @var array
* @since 3.9.0
*/
protected $contextAliases = array('com_content.form' => 'com_content.article');

/**
* Constructor.
*
Expand Down Expand Up @@ -62,6 +70,11 @@ public function __construct(&$subject, $config)
*/
public function onContentAfterSave($context, $article, $isNew)
{
if (isset($this->contextAliases[$context]))
{
$context = $this->contextAliases[$context];
}

$option = $this->app->input->getCmd('option');

if (!$this->checkLoggable($option))
Expand Down

0 comments on commit 0589ab0

Please sign in to comment.