holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r23520: LJSUP-14744: Redirect to the Profile aft...

Committer: akanashin
LJSUP-14744: Redirect to the Profile after making changes
U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2013-01-09 12:52:25 UTC (rev 23519)
+++ trunk/htdocs/manage/profile/index.bml	2013-01-09 13:05:30 UTC (rev 23520)
@@ -1092,16 +1092,8 @@
         LJ::run_hook('set_profile_settings_extra', $u, \%POST);
 
         # tell the user all is well
-        my $base = $u->journal_base;
-        my $profile_url = $u->profile_url;
-        my $ad_box = LJ::get_ads({ location => 'bml.manage.profile/main', ljadwrapper => 1, below_ad => LJ::CProd->full_box_for($remote, width => 300) });
-        return $ad_box . "<?h1 $ML{'.success.header'} h1?>\n" .
-                         "<?p $ML{'.success.text'} p?>" .
-                         "<?p $ML{'.success.gonext'} p?>" .
-                         "<ul><li><a href='$profile_url'>$ML{'.success.viewprofile'}</a></li>" .
-                         "<li><a href='$LJ::SITEROOT/manage/profile/$getextra'>$ML{'.success.editprofile'}</a></li>" .
-                         "<li><a href='$LJ::SITEROOT/editpics.bml$getextra'>$ML{'.success.editpics'}</a></li></ul>" .
-                         LJ::Widget::GettingStarted->render;
+        return LJ::Request->redirect($u->profile_url);
+
     }
 
     # should never happen

Tags: akanashin, bml, holyandrew, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments