diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-07-24 10:59:03 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-07-24 10:59:03 +0200 |
commit | 7067a0adc2e37168401e761c29e78392229ec168 (patch) | |
tree | 94cc913c94bc9ba8157f07fea88c6af9a1adccc8 /Zotlabs | |
parent | 1bd52867fb463a4b34cd2c4a9b9ace8b570e18b4 (diff) | |
download | volse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.tar.gz volse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.tar.bz2 volse-hubzilla-7067a0adc2e37168401e761c29e78392229ec168.zip |
Move language member to HelpHelperTrait.
Should have been there from the start, was just a miss.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Traits/HelpHelperTrait.php | 8 | ||||
-rw-r--r-- | Zotlabs/Module/Help.php | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Zotlabs/Lib/Traits/HelpHelperTrait.php b/Zotlabs/Lib/Traits/HelpHelperTrait.php index 9e4fefa4b..2a54e2db2 100644 --- a/Zotlabs/Lib/Traits/HelpHelperTrait.php +++ b/Zotlabs/Lib/Traits/HelpHelperTrait.php @@ -15,6 +15,14 @@ trait HelpHelperTrait { private string $file_type = ''; /** + * Associative array containing the detected language. + */ + private array $lang = [ + 'language' => 'en', //! Detected language, 2-letter ISO 639-1 code ("en") + 'from_url' => false, //! true if language from URL overrides browser default + ]; + + /** * Determines help language. * * If the language was specified in the URL, override the language preference diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php index 4adf95692..851776591 100644 --- a/Zotlabs/Module/Help.php +++ b/Zotlabs/Module/Help.php @@ -20,14 +20,6 @@ class Help extends \Zotlabs\Web\Controller { private string $heading_slug = ''; /** - * Associative array containing the detected language. - */ - public array $lang = [ - 'language' => 'en', //! Detected language, 2-letter ISO 639-1 code ("en") - 'from_url' => false, //! true if language from URL overrides browser default - ]; - - /** * Pre-check before processing request. * * Determine language requested, and ensure that a topic was requested. |