33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-23 03:19:00 +00:00

Bug fixes

This commit is contained in:
Michael Babker 2014-10-17 07:32:48 -04:00
parent d9eef95db5
commit 61f21236bc
2 changed files with 7 additions and 3 deletions

View File

@ -15,7 +15,7 @@ use PatchTester\Model\PullsModel;
*
* @since 2.0
*/
class FetchController extends \JControllerBase
class FetchController extends DisplayController
{
/**
* Execute the controller.
@ -29,7 +29,11 @@ class FetchController extends \JControllerBase
try
{
// TODO - Decouple the model and context?
$model = new PullsModel('com_patchtester.fetch', null, \JFactory::getDbo());
$model = new PullsModel('com_patchtester.fetch', $state, \JFactory::getDbo());
// Initialize the state for the model
$model->setState($this->initializeState($model));
$model->requestFromGithub();
$msg = \JText::_('COM_PATCHTESTER_FETCH_SUCCESSFUL');

View File

@ -102,7 +102,7 @@ class PullsHtmlView extends DefaultHtmlView
if (!count($this->envErrors))
{
\JToolbarHelper::custom('pulls.fetch', 'refresh.png', 'refresh_f2.png', 'COM_PATCHTESTER_TOOLBAR_FETCH_DATA', false);
\JToolbarHelper::custom('fetch', 'refresh.png', 'refresh_f2.png', 'COM_PATCHTESTER_TOOLBAR_FETCH_DATA', false);
}
\JToolBarHelper::preferences('com_patchtester');