aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-16 20:20:29 -0800
committerfriendica <info@friendica.com>2012-12-16 20:20:29 -0800
commite9b5b0f0b424930b87708080c4e6ce671016177b (patch)
tree436092bdee53c0e2a195bb0cc580c5cbc1c6e731 /mod
parentfa8b4e98b727a2af58fea55e93546089fe9bea2b (diff)
downloadvolse-hubzilla-e9b5b0f0b424930b87708080c4e6ce671016177b.tar.gz
volse-hubzilla-e9b5b0f0b424930b87708080c4e6ce671016177b.tar.bz2
volse-hubzilla-e9b5b0f0b424930b87708080c4e6ce671016177b.zip
several small fixes and adjustments
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php3
-rw-r--r--mod/network.php4
-rw-r--r--mod/settings.php14
3 files changed, 12 insertions, 9 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 7fecad427..75dc0d83c 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -74,6 +74,9 @@ function channel_content(&$a, $update = 0, $load = false) {
$tab = 'posts';
$o = '';
+
+ $is_owner = (((local_user()) && ($a->profile['profile_uid'] == local_user())) ? true : false);
+
if($update) {
// Ensure we've got a profile owner if updating.
$a->profile['profile_uid'] = $update;
diff --git a/mod/network.php b/mod/network.php
index e1061405f..47de3e380 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -561,8 +561,8 @@ function network_content(&$a, $update = 0, $load = false) {
}
else {
- $itemspage_network = get_pconfig(local_user(),'system','itemspage_network');
- $a->set_pager_itemspage(((intval($itemspage_network)) ? $itemspage_network : 40));
+ $itemspage = get_pconfig(local_user(),'system','itemspage');
+ $a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 40));
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
}
diff --git a/mod/settings.php b/mod/settings.php
index 99de364b7..465b07f09 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -187,9 +187,9 @@ function settings_post(&$a) {
if($browser_update < 10000)
$browser_update = 10000;
- $itemspage_network = ((x($_POST,'itemspage_network')) ? intval($_POST['itemspage_network']) : 40);
- if($itemspage_network > 100)
- $itemspage_network = 100;
+ $itemspage = ((x($_POST,'itemspage')) ? intval($_POST['itemspage']) : 40);
+ if($itemspage > 100)
+ $itemspage = 100;
if($mobile_theme !== '') {
@@ -197,7 +197,7 @@ function settings_post(&$a) {
}
set_pconfig(local_user(),'system','update_interval', $browser_update);
- set_pconfig(local_user(),'system','itemspage_network', $itemspage_network);
+ set_pconfig(local_user(),'system','itemspage', $itemspage);
set_pconfig(local_user(),'system','no_smilies',$nosmile);
@@ -745,8 +745,8 @@ function settings_content(&$a) {
$browser_update = intval(get_pconfig(local_user(), 'system','update_interval'));
$browser_update = (($browser_update == 0) ? 40 : $browser_update / 1000); // default if not set: 40 seconds
- $itemspage_network = intval(get_pconfig(local_user(), 'system','itemspage_network'));
- $itemspage_network = (($itemspage_network > 0 && $itemspage_network < 101) ? $itemspage_network : 40); // default if not set: 40 items
+ $itemspage = intval(get_pconfig(local_user(), 'system','itemspage'));
+ $itemspage = (($itemspage > 0 && $itemspage < 101) ? $itemspage : 40); // default if not set: 40 items
$nosmile = get_pconfig(local_user(),'system','no_smilies');
$nosmile = (($nosmile===false)? '0': $nosmile); // default if not set: 0
@@ -769,7 +769,7 @@ function settings_content(&$a) {
'$theme' => array('theme', t('Display Theme:'), $theme_selected, '', $themes, 'preview'),
'$mobile_theme' => array('mobile_theme', t('Mobile Theme:'), $mobile_theme_selected, '', $mobile_themes, ''),
'$ajaxint' => array('browser_update', t("Update browser every xx seconds"), $browser_update, t('Minimum of 10 seconds, no maximum')),
- '$itemspage_network' => array('itemspage_network', t("Number of items to display on the network page:"), $itemspage_network, t('Maximum of 100 items')),
+ '$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, ''),
'$theme_config' => $theme_config,