From bb040cfb78d53696edd63bf256d0fd8ba3ccdbfa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 30 Jan 2016 22:25:16 -0500 Subject: Simplify code to handle ajax popover and redirects --- app/Controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/Base.php') diff --git a/app/Controller/Base.php b/app/Controller/Base.php index fb64bcf3..02d87aae 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -189,7 +189,7 @@ abstract class Base extends \Kanboard\Core\Base */ protected function taskLayout($template, array $params) { - $params['ajax'] = $this->request->isAjax() || $this->request->getIntegerParam('ajax') === 1; + $params['ajax'] = $this->request->isAjax(); $content = $this->template->render($template, $params); if ($params['ajax']) { -- cgit v1.2.3