progress on pages - they're still getting lost inside conversation(), but progress is progress.

This commit is contained in:
friendica 2013-01-14 16:49:57 -08:00
parent 67868a3094
commit 639325b235
3 changed files with 14 additions and 4 deletions

View File

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

View File

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

View File

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