summaryrefslogtreecommitdiff
path: root/actions/deleteprofile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-11 18:12:52 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-11 18:12:52 -0500
commit8dcce13297dce70d993956c2e05f2b91f3c19c46 (patch)
treeca9f3659a0e9195498ea07f61cf008ed0e8abea2 /actions/deleteprofile.php
parentd3f0a9eeee1574c095274853311c7c2998d7a200 (diff)
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
Diffstat (limited to 'actions/deleteprofile.php')
-rw-r--r--actions/deleteprofile.php9
1 files changed, 4 insertions, 5 deletions
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) {