mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-03-29 19:12:22 +00:00
Drop commented code
This commit is contained in:
parent
961a8c7a35
commit
840d85435a
@ -8,8 +8,6 @@
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
jimport('joomla.application.component.controllerform');
|
||||
|
||||
/**
|
||||
* Pull controller class
|
||||
*
|
||||
|
@ -117,8 +117,6 @@ class PatchtesterModelPull extends JModelLegacy
|
||||
public function apply($id)
|
||||
{
|
||||
jimport('joomla.filesystem.file');
|
||||
//@todo Use the JCurl class
|
||||
// require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/curl.php';
|
||||
|
||||
$table = JTable::getInstance('tests', 'PatchTesterTable');
|
||||
$github = new JGithub;
|
||||
|
@ -188,14 +188,8 @@ class PatchtesterModelPulls extends JModelList
|
||||
|
||||
public function getTotal()
|
||||
{
|
||||
// $g = new PtGithub;
|
||||
|
||||
//$repo = $g->repos->get('joomla', 'joomla-cms');
|
||||
|
||||
return PTGithub::getInstance()
|
||||
->repos->get('joomla', 'joomla-cms')
|
||||
->open_issues_count;
|
||||
|
||||
//return $repo->open_issues_count;
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,6 @@ if (!JFactory::getUser()->authorise('core.manage', 'com_patchtester'))
|
||||
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
}
|
||||
|
||||
// Include dependencies
|
||||
//jimport('joomla.application.component.controller');
|
||||
|
||||
JLoader::registerPrefix('PT', __DIR__.'/helpers');
|
||||
|
||||
$controller = JControllerLegacy::getInstance('PatchTester');
|
||||
|
Loading…
x
Reference in New Issue
Block a user