From 8dcce13297dce70d993956c2e05f2b91f3c19c46 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 11 Dec 2008 18:12:52 -0500 Subject: make a new NoticeList widget and call it from StreamAction I made a new notice-list widget (like the profile list) and call it from StreamAction. This cleans up some of the mess in the various notice-stream-showing classes. I also changed show-stream so it uses a subclass of NoticeList that doesn't show author info (which is unnecessary). darcs-hash:20081211231252-5ed1f-ee6e551ed5a029406748120f12e2ff57c4a86493.gz --- actions/deleteprofile.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'actions/deleteprofile.php') diff --git a/actions/deleteprofile.php b/actions/deleteprofile.php index 99e65ceb7..9823900c5 100644 --- a/actions/deleteprofile.php +++ b/actions/deleteprofile.php @@ -103,8 +103,7 @@ class DeleteprofileAction extends Action { common_hidden('token', common_session_token()); common_element('p', null, "Last chance to copy your notices and contacts by saving the two links below before deleting your account. Be careful, this operation cannot be undone."); - - $this->show_feeds_list(array(0=>array('href'=>common_local_url('userrss', array('limit' => $notice_count, 'nickname' => $user->nickname)), + $this->show_feeds_list(array(0=>array('href'=>common_local_url('userrss', array('limit' => $notice_count, 'nickname' => $user->nickname)), 'type' => 'rss', 'version' => 'RSS 1.0', 'item' => 'notices'), @@ -146,7 +145,7 @@ class DeleteprofileAction extends Action { $fave = new Fave; $fave->user_id = $user->id; - $n_faves_deleted = $fave->delete(); + $n_faves_deleted = $fave->delete(); $confirmation = new Confirm_address; $confirmation->user_id = $user->id; @@ -177,7 +176,7 @@ class DeleteprofileAction extends Action { $profile_tagged = new Profile_tag; $profile_tagged->tagged = $user->id; $n_profiles_tagged_deleted = $profile_tagged->delete(); - + $remember_me = new Remember_me; $remember_me->user_id = $user->id; $n_remember_mes_deleted = $remember_me->delete(); @@ -257,7 +256,7 @@ class DeleteprofileAction extends Action { 'othersettings' => array(_('Other'), _('Other options'))); - + $action = $this->trimmed('action'); common_element_start('ul', array('id' => 'nav_views')); foreach ($menu as $menuaction => $menudesc) { -- cgit v1.2.3-54-g00ecf