From e679d3df0e55530c056d701b4773ff7e74f5c82c Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 21 Mar 2023 18:47:07 +0100 Subject: Improved: show Terms of Service in config menu (#5215) * Use constants for path to TOS * improve comments * TOS title moved to template * TOS available via config menu * CSS: improve handling of content of TOS/about * give info about set/unset TOS in system config * fix target * i18n FR * i18n DE --- app/Controllers/authController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers/authController.php') diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index e8f6807bd..9f9d19623 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -239,7 +239,7 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { Minz_Error::error(403); } - $this->view->show_tos_checkbox = file_exists(join_path(DATA_PATH, 'tos.html')); + $this->view->show_tos_checkbox = file_exists(TOS_FILENAME); $this->view->show_email_field = FreshRSS_Context::$system_conf->force_email_validation; $this->view->preferred_language = Minz_Translate::getLanguage(null, Minz_Request::getPreferredLanguages(), FreshRSS_Context::$system_conf->language); FreshRSS_View::prependTitle(_t('gen.auth.registration.title') . ' ยท '); -- cgit v1.2.3