aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/display.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/display.php b/mod/display.php
index b1d376c41..d5feb1f54 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -3,6 +3,8 @@
function display_content(&$a, $update = 0, $load = false) {
+ logger("mod-display: update = $update load = $load");
+
if(intval(get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
notice( t('Public access denied.') . EOL);
return;
@@ -20,8 +22,12 @@ function display_content(&$a, $update = 0, $load = false) {
if(argc() > 1 && argv(1) !== 'load')
$item_hash = argv(1);
- if($_REQUEST['mid'])
- $item_hash = $_REQUEST['mid'];
+
+ // This should actually be mid, but it needs to be changed in build_query.tpl and in all the
+ // pages which call it
+
+ if($_REQUEST['uri'])
+ $item_hash = $_REQUEST['uri'];
if(! $item_hash) {
@@ -143,6 +149,7 @@ function display_content(&$a, $update = 0, $load = false) {
}
+
$o .= conversation($a,$items,'display', $update, 'client');
return $o;