aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-10 00:15:29 -0500
committerSimon L'nu <simon.lnu@gmail.com>2012-03-10 00:15:29 -0500
commit665ad7e6600778c446aa9c5fc48ed32b309e64a7 (patch)
treedc899a136a2b9666f8f44bfec5e515ea7198ff29
parent686fe47b8892d3c3cd82b77b77adf3c990a7c160 (diff)
parentd50a839c0420634ec5756c9f2f95c26484b63b4d (diff)
downloadvolse-hubzilla-665ad7e6600778c446aa9c5fc48ed32b309e64a7.tar.gz
volse-hubzilla-665ad7e6600778c446aa9c5fc48ed32b309e64a7.tar.bz2
volse-hubzilla-665ad7e6600778c446aa9c5fc48ed32b309e64a7.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: spec directory allow user to set number of items to show on network page revup * master:
-rwxr-xr-xboot.php2
-rwxr-xr-xmod/network.php3
-rwxr-xr-xmod/settings.php9
-rwxr-xr-xspec/dfrn-snap2.jpgbin0 -> 246724 bytes
-rwxr-xr-xspec/dfrn2.odtbin0 -> 209276 bytes
-rwxr-xr-xspec/dfrn2.pdfbin0 -> 304958 bytes
-rwxr-xr-xspec/zot.txt (renamed from zot.txt)0
-rwxr-xr-xview/settings.tpl1
8 files changed, 13 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 76d2f9326..45f728999 100755
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '2.3.1275' );
+define ( 'FRIENDICA_VERSION', '2.3.1276' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1131 );
diff --git a/mod/network.php b/mod/network.php
index 27c6e315b..b04a7b489 100755
--- a/mod/network.php
+++ b/mod/network.php
@@ -403,7 +403,8 @@ function network_content(&$a, $update = 0) {
if(count($r)) {
$a->set_pager_total($r[0]['total']);
- $a->set_pager_itemspage(40);
+ $itemspage_network = get_pconfig(local_user(),'system','itemspage_network');
+ $a->set_pager_itemspage(((intval($itemspage_network)) ? $itemspage_network : 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 a9d00bc98..2ef582fdf 100755
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -237,6 +237,10 @@ function settings_post(&$a) {
if($browser_update < 10000)
$browser_update = 40000;
+ $itemspage_network = ((x($_POST,'itemspage_network')) ? intval($_POST['itemspage_network']) : 40);
+ if($itemspage_network > 100)
+ $itemspage_network = 40;
+
$allow_location = (((x($_POST,'allow_location')) && (intval($_POST['allow_location']) == 1)) ? 1: 0);
$publish = (((x($_POST,'profile_in_directory')) && (intval($_POST['profile_in_directory']) == 1)) ? 1: 0);
@@ -331,6 +335,7 @@ function settings_post(&$a) {
set_pconfig(local_user(),'system','suggestme', $suggestme);
set_pconfig(local_user(),'system','update_interval', $browser_update);
+ set_pconfig(local_user(),'system','itemspage_network', $itemspage_network);
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `theme` = '%s', `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `blockwall` = %d, `hidewall` = %d, `blocktags` = %d WHERE `uid` = %d LIMIT 1",
dbesc($username),
@@ -648,6 +653,9 @@ 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
if(! strlen($a->user['timezone']))
$timezone = date_default_timezone_get();
@@ -814,6 +822,7 @@ function settings_content(&$a) {
'$allowloc' => array('allow_location', t('Use Browser Location:'), ($a->user['allow_location'] == 1), ''),
'$theme' => array('theme', t('Display Theme:'), $theme_selected, '', $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')),
'$h_prv' => t('Security and Privacy Settings'),
diff --git a/spec/dfrn-snap2.jpg b/spec/dfrn-snap2.jpg
new file mode 100755
index 000000000..ee00f5654
--- /dev/null
+++ b/spec/dfrn-snap2.jpg
Binary files differ
diff --git a/spec/dfrn2.odt b/spec/dfrn2.odt
new file mode 100755
index 000000000..390fc4bb8
--- /dev/null
+++ b/spec/dfrn2.odt
Binary files differ
diff --git a/spec/dfrn2.pdf b/spec/dfrn2.pdf
new file mode 100755
index 000000000..e46225f7e
--- /dev/null
+++ b/spec/dfrn2.pdf
Binary files differ
diff --git a/zot.txt b/spec/zot.txt
index 2c3bbb180..2c3bbb180 100755
--- a/zot.txt
+++ b/spec/zot.txt
diff --git a/view/settings.tpl b/view/settings.tpl
index b7f427b32..46c737b23 100755
--- a/view/settings.tpl
+++ b/view/settings.tpl
@@ -30,6 +30,7 @@ $nickname_block
{{inc field_checkbox.tpl with $field=$allowloc }}{{endinc}}
{{inc field_select.tpl with $field=$theme }}{{endinc}}
{{inc field_input.tpl with $field=$ajaxint }}{{endinc}}
+{{inc field_input.tpl with $field=$itemspage_network }}{{endinc}}
<div class="settings-submit-wrapper" >