mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-02 11:58:26 +00:00
Fixed path checking on Windows #262
Turn off CI server by default Changed CI server port Removed left over from patch chain Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
63d99d3e20
commit
5c6b278628
@ -426,6 +426,8 @@ class PullModel extends AbstractModel
|
||||
*/
|
||||
private function checkFilesExist(array $files, string $path): bool
|
||||
{
|
||||
$path = Path::clean($path);
|
||||
|
||||
foreach ($files as $file)
|
||||
{
|
||||
if (is_array($file))
|
||||
@ -700,7 +702,7 @@ class PullModel extends AbstractModel
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function parseFileList(stdClass $files): array
|
||||
private function parseFileList(array $files): array
|
||||
{
|
||||
$parsedFiles = array();
|
||||
|
||||
@ -777,7 +779,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) || $id === $this->getPatchChain($id)->insert_id))
|
||||
if ((bool) $params->get('ci_switch', 1))
|
||||
{
|
||||
return $this->revertWithCIServer($id);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_NAME"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_NAME_DESC"
|
||||
autocomplete="off"
|
||||
default="https://ci.joomla.org:444"
|
||||
default="https://ci.joomla.org"
|
||||
/>
|
||||
|
||||
<field
|
||||
@ -114,7 +114,7 @@
|
||||
type="list"
|
||||
label="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH"
|
||||
description="COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_DESC"
|
||||
default="1"
|
||||
default="0"
|
||||
>
|
||||
<option value="1">COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_OPTION_ON</option>
|
||||
<option value="0">COM_PATCHTESTER_FIELD_CI_SERVER_SWITCH_OPTION_OFF</option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user