Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r21688: LJSUP-11785: Disable trava.ru

Committer: amyshkin
LJSUP-11785: Disable trava.ru
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-11 07:39:35 UTC (rev 21687)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-11 08:01:14 UTC (rev 21688)
@@ -107,7 +107,13 @@
 
 sub should_show_lastfm {
     my ($self) = @_;
-    return $self->remote->prop('music_engine') eq LJ::Setting::Music::LastFM->pkgkey ? 1 : 0;
+
+    if ( $LJ::DISABLED{'trava'} ) {
+        return $self->remote->prop('last_fm_user') ? 1 : 0;
+    }
+    else {
+        return $self->remote->prop('music_engine') eq LJ::Setting::Music::LastFM->pkgkey ? 1 : 0;
+    }
 }
 
 sub should_show_trava {

Tags: amyshkin, livejournal, pm, zilogic
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