aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-04-21 06:41:55 -0400
committerAndrew Manning <tamanning@zoho.com>2016-04-21 06:41:55 -0400
commit82de68c3d3ff931fad4ddb48a69cf62576a5397a (patch)
treef616e6c965346f2a24bae23e06849f552d24af6e /Zotlabs/Module/Admin.php
parentb96eb1c8230ae2f5986d6f22934c606bbca9728e (diff)
downloadvolse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.tar.gz
volse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.tar.bz2
volse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.zip
Added admin/site setting that toggles context help panel. If disabled, original help menu button behavior is restored.
Diffstat (limited to 'Zotlabs/Module/Admin.php')
-rw-r--r--Zotlabs/Module/Admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index d360f7b9d..1ff9065cd 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -455,6 +455,7 @@ class Admin extends \Zotlabs\Web\Controller {
$homelogin = get_config('system','login_on_homepage');
+ $enable_context_help = get_config('system','enable_context_help');
$t = get_markup_template("admin_site.tpl");
return replace_macros($t, array(
@@ -491,7 +492,7 @@ class Admin extends \Zotlabs\Web\Controller {
'$force_publish' => array('publish_all', t("Force publish"), get_config('system','publish_all'), t("Check to force all profiles on this site to be listed in the site directory.")),
'$disable_discover_tab' => array('disable_discover_tab', t('Import Public Streams'), $discover_tab, t('Import and allow access to public content pulled from other sites. Warning: this content is unmoderated.')),
'$login_on_homepage' => array('login_on_homepage', t("Login on Homepage"),((intval($homelogin) || $homelogin === false) ? 1 : '') , t("Present a login box to visitors on the home page if no other content has been configured.")),
- '$enable_context_help' => array('\enable_context_help', t("Enable context help"),((intval($enable_context_help) === 1 || $enable_context_help === false) ? 1 : 0) , t("Display contextual help for the current page when the help button is pressed.")),
+ '$enable_context_help' => array('enable_context_help', t("Enable context help"),((intval($enable_context_help) === 1 || $enable_context_help === false) ? 1 : 0) , t("Display contextual help for the current page when the help button is pressed.")),
'$directory_server' => (($dir_choices) ? array('directory_server', t("Directory Server URL"), get_config('system','directory_server'), t("Default directory server"), $dir_choices) : null),