33
0
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:
Michael Babker 2015-05-09 13:18:35 -04:00
parent 21d67965ec
commit c108343802
2 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -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;