Skip to content

Commit

Permalink
Merge branch '4.0-dev' into dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy committed Dec 29, 2019
2 parents e1cc4ae + 370fad5 commit 341dc6b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion administrator/components/com_mails/Model/TemplateModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\AdminModel;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Table\Table;
use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;
Expand Down Expand Up @@ -286,7 +287,7 @@ public function save($data)
$isNew = true;

// Include the plugins for the save events.
\JPluginHelper::importPlugin($this->events_map['save']);
PluginHelper::importPlugin($this->events_map['save']);

// Allow an exception to be thrown.
try
Expand Down
3 changes: 2 additions & 1 deletion plugins/captcha/recaptcha_invisible/recaptcha_invisible.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\Utilities\IpHelper;

/**
* Invisible reCAPTCHA Plugin.
*
* @since 3.9.0
*/
class PlgCaptchaRecaptcha_Invisible extends \JPlugin
class PlgCaptchaRecaptcha_Invisible extends CMSPlugin
{
/**
* Load the language file on instantiation.
Expand Down
6 changes: 4 additions & 2 deletions plugins/system/logrotation/logrotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

defined('_JEXEC') or die;

use Joomla\CMS\Cache\Cache;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;
use Joomla\Filesystem\Path;
Expand All @@ -21,7 +23,7 @@
*
* @since 3.9.0
*/
class PlgSystemLogrotation extends JPlugin
class PlgSystemLogrotation extends CMSPlugin
{
/**
* Load the language file on instantiation.
Expand Down Expand Up @@ -264,7 +266,7 @@ private function clearCacheGroups(array $clearGroups, array $cacheClients = arra
$conf->get('cache_path', JPATH_SITE . '/cache')
);

$cache = JCache::getInstance('callback', $options);
$cache = Cache::getInstance('callback', $options);
$cache->clean();
}
catch (Exception $e)
Expand Down
3 changes: 2 additions & 1 deletion plugins/system/privacyconsent/privacyconsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
defined('_JEXEC') or die;

use Joomla\CMS\Application\ApplicationHelper;
use Joomla\CMS\Cache\Cache;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Form\FormHelper;
Expand Down Expand Up @@ -751,7 +752,7 @@ private function clearCacheGroups(array $clearGroups, array $cacheClients = [0,
$conf->get('cache_path', JPATH_SITE . '/cache')
];

$cache = JCache::getInstance('callback', $options);
$cache = Cache::getInstance('callback', $options);
$cache->clean();
}
catch (Exception $e)
Expand Down

0 comments on commit 341dc6b

Please sign in to comment.