fix mod_display breakage.
This commit is contained in:
parent
5e47a8a14a
commit
23cd14329d
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
function display_content(&$a, $update = 0, $load = false) {
|
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())) {
|
if(intval(get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||||
notice( t('Public access denied.') . EOL);
|
notice( t('Public access denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
@ -20,8 +22,12 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
if(argc() > 1 && argv(1) !== 'load')
|
if(argc() > 1 && argv(1) !== 'load')
|
||||||
$item_hash = argv(1);
|
$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) {
|
if(! $item_hash) {
|
||||||
@ -143,6 +149,7 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$o .= conversation($a,$items,'display', $update, 'client');
|
$o .= conversation($a,$items,'display', $update, 'client');
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-03-23.261
|
2013-03-24.262
|
||||||
|
Reference in New Issue
Block a user