mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-06-03 22:20:48 +00:00
Use JGithub, raises minimum CMS version to 3.3
This commit is contained in:
parent
c1b0b499cc
commit
7b1a342a73
|
@ -25,7 +25,7 @@ class PatchtesterModelPull extends JModelLegacy
|
|||
/**
|
||||
* Github object
|
||||
*
|
||||
* @var PTGithub
|
||||
* @var JGithub
|
||||
* @since 2.0
|
||||
*/
|
||||
protected $github;
|
||||
|
@ -85,7 +85,7 @@ class PatchtesterModelPull extends JModelLegacy
|
|||
$options->set('api.password', $params->get('gh_password', ''));
|
||||
}
|
||||
|
||||
$this->github = new PTGithub($options);
|
||||
$this->github = new JGithub($options);
|
||||
|
||||
// Store the rate data for reuse during this request cycle
|
||||
$this->rate = $this->github->account->getRateLimit()->rate;
|
||||
|
|
|
@ -19,7 +19,7 @@ class PatchtesterModelPulls extends JModelList
|
|||
/**
|
||||
* Github object
|
||||
*
|
||||
* @var PTGithub
|
||||
* @var JGithub
|
||||
* @since 2.0
|
||||
*/
|
||||
protected $github;
|
||||
|
@ -68,7 +68,7 @@ class PatchtesterModelPulls extends JModelList
|
|||
JFactory::getApplication()->enqueueMessage(JText::_('COM_PATCHTESTER_NO_CREDENTIALS'), 'notice');
|
||||
}
|
||||
|
||||
$this->github = new PTGithub($options);
|
||||
$this->github = new JGithub($options);
|
||||
|
||||
// Store the rate data for reuse during this request cycle
|
||||
$this->rate = $this->github->account->getRateLimit()->rate;
|
||||
|
|
|
@ -20,7 +20,7 @@ class Com_PatchtesterInstallerScript
|
|||
* @var string
|
||||
* @since 2.0
|
||||
*/
|
||||
protected $minCmsVersion = '3.2.0';
|
||||
protected $minCmsVersion = '3.3.0';
|
||||
|
||||
/**
|
||||
* Array of templates with supported overrides
|
||||
|
@ -42,9 +42,6 @@ class Com_PatchtesterInstallerScript
|
|||
*/
|
||||
public function preflight($type, $parent)
|
||||
{
|
||||
// After releasing CMS 3.2.0, enable the below check
|
||||
return true;
|
||||
|
||||
if (version_compare(JVERSION, $this->minCmsVersion, 'lt'))
|
||||
{
|
||||
JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_PATCHTESTER_ERROR_INSTALL_JVERSION', $this->minCmsVersion));
|
||||
|
|
Loading…
Reference in New Issue
Block a user