Skip to content

Commit

Permalink
Make sure manifest object returned before logging actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Sep 18, 2018
1 parent 5673217 commit ad8d53c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugins/actionlog/joomla/joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@ public function onExtensionAfterInstall($installer, $eid)
$language = JFactory::getLanguage();
$user = JFactory::getUser();
$manifest = $installer->get('manifest');

if ($manifest === null)
{
return;
}

$extensionType = $manifest->attributes()->type;

// If the extension type has it own language key, use it, otherwise, use default language key
Expand Down Expand Up @@ -423,6 +429,12 @@ public function onExtensionAfterUninstall($installer, $eid, $result)
$language = JFactory::getLanguage();
$user = JFactory::getUser();
$manifest = $installer->get('manifest');

if ($manifest === null)
{
return;
}

$extensionType = $manifest->attributes()->type;

// If the extension type has it own language key, use it, otherwise, use default language key
Expand Down Expand Up @@ -473,6 +485,12 @@ public function onExtensionAfterUpdate($installer, $eid)
$language = JFactory::getLanguage();
$user = JFactory::getUser();
$manifest = $installer->get('manifest');

if ($manifest === null)
{
return;
}

$extensionType = $manifest->attributes()->type;

// If the extension type has it own language key, use it, otherwise, use default language key
Expand Down

0 comments on commit ad8d53c

Please sign in to comment.