aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-10 15:14:03 -0800
committerfriendica <info@friendica.com>2014-02-10 15:14:03 -0800
commit12319c41e3c0565745060d7ade97f194229dddb2 (patch)
tree0badb67c27e7e41c0012fce94bf4098791d72ba6 /mod
parentb757bbea4e27ef7cf49e8fd2a3411224c1612c16 (diff)
downloadvolse-hubzilla-12319c41e3c0565745060d7ade97f194229dddb2.tar.gz
volse-hubzilla-12319c41e3c0565745060d7ade97f194229dddb2.tar.bz2
volse-hubzilla-12319c41e3c0565745060d7ade97f194229dddb2.zip
add chanview mode to settings
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 7889538f3..c5aff62b8 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -150,9 +150,12 @@ function settings_post(&$a) {
set_pconfig(local_user(),'system','mobile_theme',$mobile_theme);
}
+ $chanview_full = ((x($_POST,'chanview_full')) ? intval($_POST['chanview_full']) : 0);
+
set_pconfig(local_user(),'system','update_interval', $browser_update);
set_pconfig(local_user(),'system','itemspage', $itemspage);
set_pconfig(local_user(),'system','no_smilies',$nosmile);
+ set_pconfig(local_user(),'system','chanview_full',$chanview_full);
if ($theme == $a->channel['channel_theme']){
@@ -734,6 +737,7 @@ function settings_content(&$a) {
$nosmile = get_pconfig(local_user(),'system','no_smilies');
$nosmile = (($nosmile===false)? '0': $nosmile); // default if not set: 0
+ $chanview = intval(get_pconfig(local_user(),'system','chanview_full'));
$theme_config = "";
if( ($themeconfigfile = get_theme_config_file($theme_selected)) != null){
@@ -754,7 +758,7 @@ function settings_content(&$a) {
'$ajaxint' => array('browser_update', t("Update browser every xx seconds"), $browser_update, t('Minimum of 10 seconds, no maximum')),
'$itemspage' => array('itemspage', t("Maximum number of conversations to load at any time:"), $itemspage, t('Maximum of 100 items')),
'$nosmile' => array('nosmile', t("Don't show emoticons"), $nosmile, ''),
-
+ '$chanview_full' => array('chanview_full', t('View remote profiles as webpages'), $chanview, t('By default open in a sub-window of your own site')),
'$theme_config' => $theme_config,
));