From 8c0eda45c93c9cc95bf6ca422cb84268fbfcae9c Mon Sep 17 00:00:00 2001 From: Roland Dalmulder Date: Mon, 11 May 2020 14:18:00 +0200 Subject: [PATCH] CI is off by default Fixes #279 Signed-off-by: Roland Dalmulder --- .../com_patchtester/PatchTester/Model/PullModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index e72bd90..458d204 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -112,7 +112,7 @@ class PullModel extends AbstractModel $params = ComponentHelper::getParams('com_patchtester'); // Decide based on repository settings whether patch will be applied through Github or CIServer - if ((bool) $params->get('ci_switch', 1)) + if ((bool) $params->get('ci_switch', 0)) { return $this->applyWithCIServer($id); } @@ -796,7 +796,7 @@ class PullModel extends AbstractModel $params = ComponentHelper::getParams('com_patchtester'); // Decide based on repository settings whether patch will be applied through Github or CIServer - if ((bool) $params->get('ci_switch', 1)) + if ((bool) $params->get('ci_switch', 0)) { return $this->revertWithCIServer($id); }