From 44e4bbe10c7f66ab47ce298009009e6627432bc5 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 24 Apr 2019 15:25:50 +0000 Subject: [PATCH] Renamed MULTITEAM_MODE to MULTIORG_MODE to better reflect the meaning of the constant. --- WEB-INF/config.php.dist | 4 ++-- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/header.tpl | 2 +- login.php | 2 +- mobile/login.php | 2 +- register.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/WEB-INF/config.php.dist b/WEB-INF/config.php.dist index 577baeaf..1785336f 100644 --- a/WEB-INF/config.php.dist +++ b/WEB-INF/config.php.dist @@ -42,12 +42,12 @@ define('DSN', 'mysqli://root:no@localhost/dbname?charset=utf8mb4'); // and now you see some corrupted characters. See http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html -// MULTITEAM_MODE option defines whether users can create their own top groups (organizations). +// MULTIORG_MODE option defines whether users can create their own top groups (organizations). // When false, a Time Tracker server is managed by admin, who creates top groups (one or many). // // Available values are true or false. // -define('MULTITEAM_MODE', true); +define('MULTIORG_MODE', true); // Application name. diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index eafc12d4..1ad5a721 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.19.3.4982 | Copyright © Anuko | +  Anuko Time Tracker 1.19.3.4983 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index b420f1ae..2c5fa617 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -155,7 +155,7 @@
  {$i18n.menu.login} - {if isTrue('MULTITEAM_MODE') && $smarty.const.AUTH_MODULE == 'db'} + {if isTrue('MULTIORG_MODE') && $smarty.const.AUTH_MODULE == 'db'} {$i18n.menu.create_group} {/if} {$i18n.menu.forum} diff --git a/login.php b/login.php index 68a80678..8185203a 100644 --- a/login.php +++ b/login.php @@ -75,7 +75,7 @@ if ($request->isPost()) { } } // isPost -if(!isTrue('MULTITEAM_MODE') && !ttOrgHelper::getOrgs()) +if(!isTrue('MULTIORG_MODE') && !ttOrgHelper::getOrgs()) $err->add($i18n->get('error.no_groups')); // Determine whether to show login hint. It is currently used only for Windows LDAP authentication. diff --git a/mobile/login.php b/mobile/login.php index 26b75db4..a432e5b6 100644 --- a/mobile/login.php +++ b/mobile/login.php @@ -80,7 +80,7 @@ if ($request->isPost()) { } } // isPost -if(!isTrue('MULTITEAM_MODE') && !ttOrgHelper::getOrgs()) +if(!isTrue('MULTIORG_MODE') && !ttOrgHelper::getOrgs()) $err->add($i18n->get('error.no_groups')); // Determine whether to show login hint. It is currently used only for Windows LDAP authentication. diff --git a/register.php b/register.php index 4c923c73..0c0374b3 100644 --- a/register.php +++ b/register.php @@ -29,7 +29,7 @@ require_once('initialize.php'); import('form.Form'); -if (!isTrue('MULTITEAM_MODE') || $auth->isPasswordExternal()) { +if (!isTrue('MULTIORG_MODE') || $auth->isPasswordExternal()) { header('Location: login.php'); exit(); } -- 2.20.1