fix mod_display breakage.

This commit is contained in:
friendica 2013-03-24 19:51:23 -07:00
parent 5e47a8a14a
commit 23cd14329d
2 changed files with 10 additions and 3 deletions

View File

@ -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;

View File

@ -1 +1 @@
2013-03-23.261
2013-03-24.262