Merge pull request #14038 from annando/feature-constants

Constants for features
This commit is contained in:
Hypolite Petovan 2024-03-24 19:37:39 +00:00 committed by GitHub
commit b21604a720
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 273 additions and 274 deletions

View file

@ -388,7 +388,7 @@ class Conversation
'$title' => $x['title'] ?? '',
'$placeholdertitle' => $this->l10n->t('Set title'),
'$category' => $x['category'] ?? '',
'$placeholdercategory' => Feature::isEnabled($this->session->getLocalUserId(), 'categories') ? $this->l10n->t("Categories \x28comma-separated list\x29") : '',
'$placeholdercategory' => Feature::isEnabled($this->session->getLocalUserId(), Feature::CATEGORIES) ? $this->l10n->t("Categories \x28comma-separated list\x29") : '',
'$scheduled_at' => Temporal::getDateTimeField(
new \DateTime(),
new \DateTime('now + 6 months'),