holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22878: LJSUP-13574: Public beta

Committer: akanashin
LJSUP-13574: Public beta
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-09-12 13:18:58 UTC (rev 22877)
+++ trunk/htdocs/userinfo.bml	2012-09-12 14:00:04 UTC (rev 22878)
@@ -354,7 +354,7 @@
 
     my $url = LJ::Request->uri();
     # Page version switcher
-    if ($remote && !$remote->prop('profile_ver_noswitch')) {
+    if (LJ::is_enabled('profile_controller') && $remote && !$remote->prop('profile_ver_noswitch')) {
         $body .= "<form class='b-profile-switchver' method='POST'><button class='b-profile-switchver-button' type='submit' name='new_version' value='1' ><span class='b-profile-switchver-inner'>".LJ::Lang::ml('profile.switch.to.new.version')."</span></button> " .LJ::Lang::ml('profile.switch.to.version.post'). "</form>";
         if (LJ::did_post() && LJ::Request->post_param('new_version')) {
             $remote->set_prop('profile_ver', 2);

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