mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-09 17:13:58 +00:00
Move the line the error check is done on, add error check to Hathor (Fix #32)
This commit is contained in:
parent
21d67965ec
commit
c108343802
@ -13,14 +13,14 @@
|
||||
|
||||
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
||||
|
||||
if (count($this->envErrors)) :
|
||||
$this->loadTemplate('errors');
|
||||
else :
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
||||
$sortFields = $this->getSortFields();
|
||||
|
||||
if (count($this->envErrors)) :
|
||||
$this->loadTemplate('errors');
|
||||
else :
|
||||
\JFactory::getDocument()->addScriptDeclaration(
|
||||
"
|
||||
var submitpatch = function (task, id) {
|
||||
|
@ -13,6 +13,9 @@
|
||||
|
||||
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
||||
|
||||
if (count($this->envErrors)) :
|
||||
$this->loadTemplate('errors');
|
||||
else :
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
||||
@ -106,3 +109,4 @@ echo JHtmlBootstrap::renderModal(
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif;
|
||||
|
Loading…
Reference in New Issue
Block a user