aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ConversationObject.php4
-rw-r--r--include/conversation.php10
-rw-r--r--mod/page.php4
3 files changed, 14 insertions, 4 deletions
diff --git a/include/ConversationObject.php b/include/ConversationObject.php
index 033ce7f76..37633369e 100644
--- a/include/ConversationObject.php
+++ b/include/ConversationObject.php
@@ -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;
diff --git a/include/conversation.php b/include/conversation.php
index 88da4a0b9..e5c035335 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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";
}
diff --git a/mod/page.php b/mod/page.php
index 4a7f601f5..e4e22c9e1 100644
--- a/mod/page.php
+++ b/mod/page.php
@@ -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;
}