progress on pages - they're still getting lost inside conversation(), but progress is progress.
This commit is contained in:
parent
67868a3094
commit
639325b235
@ -49,6 +49,10 @@ class Conversation extends BaseObject {
|
||||
$this->profile_owner = $a->profile['uid'];
|
||||
$this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments');
|
||||
break;
|
||||
case 'page':
|
||||
$this->profile_owner = $a->profile['uid'];
|
||||
$this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments');
|
||||
break;
|
||||
default:
|
||||
logger('[ERROR] Conversation::set_mode : Unhandled mode ('. $mode .').', LOGGER_DEBUG);
|
||||
return false;
|
||||
|
@ -419,9 +419,6 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
elseif($mode === 'display') {
|
||||
@ -432,6 +429,13 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
|
||||
}
|
||||
|
||||
elseif($mode === 'page') {
|
||||
$profile_owner = $a->profile['uid'];
|
||||
$page_writeable = ($profile_owner == local_user());
|
||||
$live_update_div = '<div id="live-page"></div>' . "\r\n";
|
||||
}
|
||||
|
||||
|
||||
else if($mode === 'search') {
|
||||
$live_update_div = '<div id="live-search"></div>' . "\r\n";
|
||||
}
|
||||
|
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
require_once('include/items.php');
|
||||
require_once('include/conversation.php');
|
||||
|
||||
function page_content(&$a) {
|
||||
|
||||
if(argc < 3) {
|
||||
if(argc() < 3) {
|
||||
notice( t('Invalid item.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user