<?php
-if(! function_exists('display_init')) {
+
function display_init(&$a) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
}
profile_load($a, $nick, 0, $profiledata);
-}
+
}
-if(! function_exists('display_fetchauthor')) {
function display_fetchauthor($a, $item) {
$profiledata = array();
return($profiledata);
}
-}
-if(! function_exists('display_content')) {
function display_content(&$a, $update = 0) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
return;
}
- // Why do we need this on the display page? We don't have the possibility to write new content here.
- // Ad editing of posts work without this as well.
- // We should remove this completely for the 3.5.1 release.
- /*
+ // We need the editor here to be able to reshare an item.
+
if ($is_owner) {
$x = array(
'is_owner' => true,
);
$o .= status_editor($a,$x,0,true);
}
- */
$sql_extra = item_permissions_sql($a->profile['uid'],$remote_contact,$groups);
return $o;
}
-}
+