mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-24 15:48:27 +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);
|
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
||||||
|
|
||||||
|
if (count($this->envErrors)) :
|
||||||
|
$this->loadTemplate('errors');
|
||||||
|
else :
|
||||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
||||||
$sortFields = $this->getSortFields();
|
$sortFields = $this->getSortFields();
|
||||||
|
|
||||||
if (count($this->envErrors)) :
|
|
||||||
$this->loadTemplate('errors');
|
|
||||||
else :
|
|
||||||
\JFactory::getDocument()->addScriptDeclaration(
|
\JFactory::getDocument()->addScriptDeclaration(
|
||||||
"
|
"
|
||||||
var submitpatch = function (task, id) {
|
var submitpatch = function (task, id) {
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
||||||
|
|
||||||
|
if (count($this->envErrors)) :
|
||||||
|
$this->loadTemplate('errors');
|
||||||
|
else :
|
||||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
$filterApplied = $this->escape($this->state->get('filter.applied'));
|
||||||
@ -106,3 +109,4 @@ echo JHtmlBootstrap::renderModal(
|
|||||||
<?php echo JHtml::_('form.token'); ?>
|
<?php echo JHtml::_('form.token'); ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<?php endif;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user