diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-01-18 01:31:39 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-01-18 01:31:39 +0000 |
commit | 3e18c2f0f8bbab01e16f66254dc9eadc9e1ffd60 (patch) | |
tree | fa42e4e9175f6003b7d57ba64dadeaf1986b412e /actions/facebookhome.php | |
parent | 2c9759c3b329eff455b3998d748292d581635f90 (diff) |
trac750 Facebook App - generate HTML similar to uiredisign for everything
Diffstat (limited to 'actions/facebookhome.php')
-rw-r--r-- | actions/facebookhome.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/actions/facebookhome.php b/actions/facebookhome.php index b780b8cc3..46f886451 100644 --- a/actions/facebookhome.php +++ b/actions/facebookhome.php @@ -19,7 +19,7 @@ if (!defined('LACONICA')) { exit(1); } -require_once(INSTALLDIR.'/lib/facebookaction.php'); +require_once INSTALLDIR.'/lib/facebookaction.php'; class FacebookhomeAction extends FacebookAction { @@ -35,6 +35,8 @@ class FacebookhomeAction extends FacebookAction $flink = Foreign_link::getByForeignID($fbuid, FACEBOOK_SERVICE); if ($flink) { + $user = $flink->getUser(); + common_set_user($user); $this->showHome($flink, null); } else { $this->login($fbuid); @@ -103,7 +105,7 @@ class FacebookhomeAction extends FacebookAction update_profile_box($facebook, $fbuid, $user, $notice); - $this->show_header('Home'); + $this->showHeader('Home'); if ($msg) { common_element('fb:success', array('message' => $msg)); @@ -111,7 +113,7 @@ class FacebookhomeAction extends FacebookAction echo $this->show_notices($user); - $this->show_footer(); + $this->showFooter(); } function show_notices($user) @@ -132,7 +134,7 @@ class FacebookhomeAction extends FacebookAction function show_notice_list($notice) { - $nl = new NoticeList($notice); + $nl = new FacebookNoticeList($notice); return $nl->show(); } |