Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build/lib/Controller/SettingsController.php')
-rw-r--r--build/lib/Controller/SettingsController.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/build/lib/Controller/SettingsController.php b/build/lib/Controller/SettingsController.php
index dbd995d..094f6d6 100644
--- a/build/lib/Controller/SettingsController.php
+++ b/build/lib/Controller/SettingsController.php
@@ -254,6 +254,14 @@ class SettingsController extends Controller
return $response;
}
+ /**
+ * @NoAdminRequired
+ */
+ public function getServerType()
+ {
+ return ["serverType" => $this->getAppValue('serverType', 'internal')];
+ }
+
private function getCurrentUser()
{
$currentUser = false;
@@ -322,8 +330,7 @@ class SettingsController extends Controller
private function isPasswordConfirmationRequired()
{
$version = \OCP\Util::getVersion();
- preg_match('/^([0-9]+)\.', $version, $versionMatches);
- $majorVersion = intval($versionMatches[1]);
+ $majorVersion = intval($version[0]);
// copied from owncloud/settings/ajax/installapp.php
$lastConfirm = (int) \OC::$server->getSession()->get('last-password-confirm');