ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r16338: LJSV-955: Providing personal accounts wi...

Committer: ssafronova
LJSV-955: Providing personal accounts with Google Analytics
U   trunk/htdocs/manage/settings/index.bml
Modified: trunk/htdocs/manage/settings/index.bml
===================================================================
--- trunk/htdocs/manage/settings/index.bml	2010-03-04 12:37:39 UTC (rev 16337)
+++ trunk/htdocs/manage/settings/index.bml	2010-03-05 09:23:32 UTC (rev 16338)
@@ -135,6 +135,19 @@
                 LJ::Setting::Display::GiftCerts
             )],
         },
+        extensions => {
+            name        => LJ::Lang::ml('.cat.integration'),
+            visible     => 1,
+            disabled    => !$u || $u->is_community ? 1 : 0,
+            form        => 1,
+            desc        => LJ::Lang::ml('.cat.integration.desc'),
+            need_ssl    => 0,
+            sort_weight => 70,
+            settings    => [qw(
+                LJ::Setting::MSN
+                LJ::Setting::GoogleAnalytics
+            )],
+        },
     );
 
     LJ::run_hooks("settings_extra_cats", \%cats_with_settings, user => $u);
@@ -420,7 +433,7 @@
             my $errors = $setting->errors_from_save($save_rv);
             my $args = $setting->args_from_save($save_rv);
 
-            my $label = $setting->label;
+            my $label = $setting->label($u);
             my $option = $setting->option($u, $errors, $args, getargs => \%GET );
             my $actionlink = $setting->actionlink($u);
             my $helpicon = LJ::help_icon($setting->helpurl($u));

Tags: bml, livejournal, ssafronova
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