aboutsummaryrefslogtreecommitdiffstats
path: root/mod/manage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-25 17:57:20 -0700
committerfriendica <info@friendica.com>2012-09-25 17:57:20 -0700
commitfbafd92f7f7b96b215b98f30de9a1ccbdb3479be (patch)
treef1f6739d513ac297fbd14162b8377cc4cf84c784 /mod/manage.php
parentdd5725c2725b742473ce285dce8573da37fb8053 (diff)
downloadvolse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.gz
volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.tar.bz2
volse-hubzilla-fbafd92f7f7b96b215b98f30de9a1ccbdb3479be.zip
moving a lot of structure around. 'entity' is now 'channel'
Diffstat (limited to 'mod/manage.php')
-rw-r--r--mod/manage.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/mod/manage.php b/mod/manage.php
index 4bf161a39..b9237822b 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -9,18 +9,18 @@ function manage_content(&$a) {
$change_channel = ((argc() > 1) ? intval(argv(1)) : 0);
if($change_channel) {
- $r = q("select * from entity where entity_id = %d and entity_account_id = %d limit 1",
+ $r = q("select * from channel where channel_id = %d and channel_account_id = %d limit 1",
intval($change_channel),
intval(get_account_id())
);
if($r && count($r)) {
- $_SESSION['uid'] = intval($r[0]['entity_id']);
- get_app()->identity = $r[0];
- $_SESSION['theme'] = $r[0]['entity_theme'];
- date_default_timezone_set($r[0]['entity_timezone']);
+ $_SESSION['uid'] = intval($r[0]['channel_id']);
+ get_app()->set_channel($r[0]);
+ $_SESSION['theme'] = $r[0]['channel_theme'];
+ date_default_timezone_set($r[0]['channel_timezone']);
}
- if($r[0]['entity_startpage'])
- goaway(z_root() . '/' . $r[0]['entity_startpage']);
+ if($r[0]['channel_startpage'])
+ goaway(z_root() . '/' . $r[0]['channel_startpage']);
goaway(z_root());
}
@@ -28,20 +28,20 @@ function manage_content(&$a) {
$channels = null;
if(local_user()) {
- $r = q("select entity.*, contact.* from entity left join contact on entity.entity_id = contact.uid
- where entity.entity_account_id = %d and contact.self = 1",
+ $r = q("select channel.*, contact.* from channel left join contact on channel.channel_id = contact.uid
+ where channel.channel_account_id = %d and contact.self = 1",
intval(get_account_id())
);
if($r && count($r)) {
$channels = $r;
for($x = 0; $x < count($channels); $x ++)
- $channels[$x]['link'] = 'manage/' . intval($channels[$x]['entity_id']);
+ $channels[$x]['link'] = 'manage/' . intval($channels[$x]['channel_id']);
}
}
$links = array(
- array( 'zentity', t('Create a new channel'), t('New Channel'))
+ array( 'zchannel', t('Create a new channel'), t('New Channel'))
);