summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-15 21:24:22 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-15 21:24:22 -0700
commit44343986c31b20158ef07438f85a6bf35b93a3ab (patch)
treedb0df1a417ffbce747d59ae9bdc8647bdbd9ea31 /actions
parente7e3709ae0294b8400b85d87f2ebeade5b31858d (diff)
parent8c24a3bc92484d19ed4ba489d2d7b1172f4b355d (diff)
Merge branch '0.8.x' into userdesign
* 0.8.x: a little better query handling in redirect code a little better query handling in redirect code forgot some functions aren't available at status time redirect on non-canonical server name don't show create-a-group link if not logged in allow a configured base for cache keys Missing call to getProfile() caused verify_credentials to fail. change mods for setup script Script to set up new status networks strncmp -> strcasecmp Return network from network setup function Configurable avatar directory
Diffstat (limited to 'actions')
-rw-r--r--actions/groups.php12
-rw-r--r--actions/twitapiusers.php2
2 files changed, 8 insertions, 6 deletions
diff --git a/actions/groups.php b/actions/groups.php
index 26b52a5fc..b49d80f37 100644
--- a/actions/groups.php
+++ b/actions/groups.php
@@ -100,11 +100,13 @@ class GroupsAction extends Action
function showContent()
{
- $this->elementStart('p', array('id' => 'new_group'));
- $this->element('a', array('href' => common_local_url('newgroup'),
- 'class' => 'more'),
- _('Create a new group'));
- $this->elementEnd('p');
+ if (common_logged_in()) {
+ $this->elementStart('p', array('id' => 'new_group'));
+ $this->element('a', array('href' => common_local_url('newgroup'),
+ 'class' => 'more'),
+ _('Create a new group'));
+ $this->elementEnd('p');
+ }
$offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1;
diff --git a/actions/twitapiusers.php b/actions/twitapiusers.php
index 13a8746cd..21a56a9a5 100644
--- a/actions/twitapiusers.php
+++ b/actions/twitapiusers.php
@@ -58,7 +58,7 @@ class TwitapiusersAction extends TwitterapiAction
return;
}
- $twitter_user = $this->twitter_user_array($profile, true);
+ $twitter_user = $this->twitter_user_array($user->getProfile(), true);
if ($apidata['content-type'] == 'xml') {
$this->init_document('xml');