aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-13 18:40:15 -0700
committerFriendika <info@friendika.com>2011-09-13 18:40:15 -0700
commit12fec754892b29ab9c07b20b1d6b322f6724aae8 (patch)
treefc3c223e3c94e9733b344f1e893d2ae9fe5fd29c /mod
parent1248a561e13ebd0a612b7e6b0630c1aa89f0556e (diff)
downloadvolse-hubzilla-12fec754892b29ab9c07b20b1d6b322f6724aae8.tar.gz
volse-hubzilla-12fec754892b29ab9c07b20b1d6b322f6724aae8.tar.bz2
volse-hubzilla-12fec754892b29ab9c07b20b1d6b322f6724aae8.zip
ability to re-order network page (no UI yet)
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/network.php b/mod/network.php
index ef97fb895..438b3417d 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -20,6 +20,7 @@ function network_init(&$a) {
$srchurl = '/network'
. ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '')
. ((x($_GET,'star')) ? '?star=' . $_GET['star'] : '')
+ . ((x($_GET,'order')) ? '?order=' . $_GET['order'] : '')
. ((x($_GET,'bmark')) ? '?bmark=' . $_GET['bmark'] : '');
if(x($_GET,'save')) {
@@ -127,11 +128,11 @@ function network_content(&$a, $update = 0) {
$nouveau = false;
require_once('include/acl_selectors.php');
- $cid = ((x($_GET['cid'])) ? intval($_GET['cid']) : 0);
- $star = ((x($_GET['star'])) ? intval($_GET['star']) : 0);
- $bmark = ((x($_GET['bmark'])) ? intval($_GET['bmark']) : 0);
+ $cid = ((x($_GET,'cid')) ? intval($_GET['cid']) : 0);
+ $star = ((x($_GET,'star')) ? intval($_GET['star']) : 0);
+ $bmark = ((x($_GET,'bmark')) ? intval($_GET['bmark']) : 0);
+ $order = ((x($_GET,'order')) ? notags($_GET['order']) : 'comment');
- $order = 'comment';
if(($a->argc > 2) && $a->argv[2] === 'new')
$nouveau = true;
@@ -192,6 +193,7 @@ function network_content(&$a, $update = 0) {
. ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '')
. ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '')
. ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '')
+ . ((x($_GET,'order')) ? '&order=' . $_GET['order'] : '')
. ((x($_GET,'bmark')) ? '&bmark=' . $_GET['bmark'] : '')
. "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n";