31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-09-27 20:19:01 +00:00

Use FW Registry

This commit is contained in:
Michael Babker 2014-05-02 21:02:38 -05:00
parent 400e931bb7
commit 881d5fa9ae
3 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,8 @@
defined('_JEXEC') or die; defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/** /**
* Helper class for the patch tester component * Helper class for the patch tester component
* *
@ -27,7 +29,7 @@ abstract class PatchtesterHelper
{ {
$params = JComponentHelper::getParams('com_patchtester'); $params = JComponentHelper::getParams('com_patchtester');
$options = new JRegistry; $options = new Registry;
// If an API token is set in the params, use it for authentication // If an API token is set in the params, use it for authentication
if ($params->get('gh_token', '')) if ($params->get('gh_token', ''))

View File

@ -8,6 +8,8 @@
defined('_JEXEC') or die; defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/** /**
* Methods supporting pull requests. * Methods supporting pull requests.
* *
@ -154,7 +156,7 @@ class PatchtesterModelPull extends JModelLegacy
} }
// Set up the JHttp object // Set up the JHttp object
$options = new JRegistry; $options = new Registry;
$options->set('userAgent', 'JPatchTester/2.0'); $options->set('userAgent', 'JPatchTester/2.0');
$options->set('timeout', 120); $options->set('timeout', 120);

View File

@ -35,7 +35,7 @@ class PatchtesterViewPulls extends JViewLegacy
/** /**
* State object * State object
* *
* @var JRegistry * @var \Joomla\Registry\Registry
* @since 1.0 * @since 1.0
*/ */
protected $state; protected $state;