Просмотр исходного кода

Disable branch change for docker users

causefx 7 лет назад
Родитель
Сommit
f56fc3aa80
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      api/functions/organizr-functions.php

+ 3 - 1
api/functions/organizr-functions.php

@@ -439,7 +439,9 @@ function getSettingsMain()
 				'name' => 'branch',
 				'label' => 'Branch',
 				'value' => $GLOBALS['branch'],
-				'options' => getBranches()
+				'options' => getBranches(),
+				'disabled' => $GLOBALS['branch'],
+				'help' => ($GLOBALS['docker']) ? 'Since you are using the Official Docker image, Change the image to change the branch' : 'Choose which branch to download from'
 			),
 			array(
 				'type' => 'button',