Skip to content

Commit c108343

Browse files
author
Michael Babker
committed
Move the line the error check is done on, add error check to Hathor (Fix #32)
1 parent 21d6796 commit c108343

File tree

2 files changed

+7
-3
lines changed
  • administrator
    • components/com_patchtester/PatchTester/View/Pulls/tmpl
    • templates/hathor/html/com_patchtester/pulls

2 files changed

+7
-3
lines changed

administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
1515

16+
if (count($this->envErrors)) :
17+
$this->loadTemplate('errors');
18+
else :
1619
$listOrder = $this->escape($this->state->get('list.ordering'));
1720
$listDirn = $this->escape($this->state->get('list.direction'));
1821
$filterApplied = $this->escape($this->state->get('filter.applied'));
1922
$sortFields = $this->getSortFields();
2023

21-
if (count($this->envErrors)) :
22-
$this->loadTemplate('errors');
23-
else :
2424
\JFactory::getDocument()->addScriptDeclaration(
2525
"
2626
var submitpatch = function (task, id) {

administrator/templates/hathor/html/com_patchtester/pulls/default.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
1515

16+
if (count($this->envErrors)) :
17+
$this->loadTemplate('errors');
18+
else :
1619
$listOrder = $this->escape($this->state->get('list.ordering'));
1720
$listDirn = $this->escape($this->state->get('list.direction'));
1821
$filterApplied = $this->escape($this->state->get('filter.applied'));
@@ -106,3 +109,4 @@
106109
<?php echo JHtml::_('form.token'); ?>
107110
</div>
108111
</form>
112+
<?php endif;

0 commit comments

Comments
 (0)