diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-13 17:07:12 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-13 17:07:12 -0700 |
commit | 475dc7b686d6939d88c79dd58df1ff751356a922 (patch) | |
tree | 1271d12c627d8bd3826119df08e9d2c9477be3aa /mod | |
parent | 4ca06ebd79b5258c5cb6ccb0871d98c9180f91b2 (diff) | |
parent | c82082d2bbb00294d62330d577dcdbc9ec6b9d1c (diff) | |
download | volse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.tar.gz volse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.tar.bz2 volse-hubzilla-475dc7b686d6939d88c79dd58df1ff751356a922.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
boot.php
include/api.php
include/enotify.php
Diffstat (limited to 'mod')
-rw-r--r-- | mod/page.php | 7 | ||||
-rw-r--r-- | mod/parse_url.php | 2 | ||||
-rw-r--r-- | mod/siteinfo.php | 2 | ||||
-rw-r--r-- | mod/webpages.php | 5 | ||||
-rw-r--r-- | mod/zfinger.php | 2 |
5 files changed, 11 insertions, 7 deletions
diff --git a/mod/page.php b/mod/page.php index ad1862a7a..25b4d8888 100644 --- a/mod/page.php +++ b/mod/page.php @@ -35,7 +35,11 @@ function page_init(&$a) { } $channel_address = argv(1); - $page_id = argv(2); + + // The page link title was stored in a urlencoded format + // php or the browser may/will have decoded it, so re-encode it for our search + + $page_id = urlencode(argv(2)); $u = q("select channel_id from channel where channel_address = '%s' limit 1", dbesc($channel_address) @@ -62,7 +66,6 @@ function page_init(&$a) { intval(ITEM_WEBPAGE), intval(ITEM_PDL) ); - if(! $r) { // Check again with no permissions clause to see if it is a permissions issue diff --git a/mod/parse_url.php b/mod/parse_url.php index b6c0559f9..2a6f7663e 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -325,7 +325,7 @@ function parse_url_content(&$a) { // If this is a Red site, use zrl rather than url so they get zids sent to them by default - if( x($siteinfo,'generator') && (strpos($siteinfo['generator'],RED_PLATFORM . ' ') === 0)) + if( x($siteinfo,'generator') && (strpos($siteinfo['generator'],PLATFORM_NAME . ' ') === 0)) $template = str_replace('url','zrl',$template); if($siteinfo["title"] == "") { diff --git a/mod/siteinfo.php b/mod/siteinfo.php index 1c39e8ecf..d9464f4f6 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -90,7 +90,7 @@ function siteinfo_init(&$a) { 'default_service_restrictions' => $service_class, 'admin' => $admin, 'site_name' => (($site_name) ? $site_name : ''), - 'platform' => RED_PLATFORM, + 'platform' => PLATFORM_NAME, 'dbdriver' => $db->getdriver(), 'lastpoll' => get_config('system','lastpoll'), 'info' => (($site_info) ? $site_info : ''), diff --git a/mod/webpages.php b/mod/webpages.php index 859c93fde..62abfb34a 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -133,8 +133,9 @@ function webpages_content(&$a) { $sql_extra = item_permissions_sql($owner); $r = q("select * from item_id left join item on item_id.iid = item.id - where item_id.uid = %d and service = 'WEBPAGE' $sql_extra order by item.created desc", - intval($owner) + where item_id.uid = %d and service = 'WEBPAGE' and item_restrict = %d $sql_extra order by item.created desc", + intval($owner), + intval(ITEM_WEBPAGE) ); $pages = null; diff --git a/mod/zfinger.php b/mod/zfinger.php index e236a1e73..6b93b3410 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -280,7 +280,7 @@ function zfinger_init(&$a) { $ret['site']['channels'] = channel_total(); - $ret['site']['version'] = RED_PLATFORM . ' ' . RED_VERSION . '[' . DB_UPDATE_VERSION . ']'; + $ret['site']['version'] = PLATFORM_NAME . ' ' . RED_VERSION . '[' . DB_UPDATE_VERSION . ']'; $ret['site']['admin'] = get_config('system','admin_email'); |