vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r11032: LJSV-1809: Banner blocks Adult content N...

Committer: vad
LJSV-1809: Banner blocks Adult content Notice
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-09-21 10:38:59 UTC (rev 11031)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-09-23 03:41:45 UTC (rev 11032)
@@ -47,7 +47,9 @@
 
 sub LJ::_is_branding_active {
     ## Only homepage must be branded
-    my $uri = BML::get_uri();
+    return unless LJ::Request->hostname eq "www.$LJ::DOMAIN";
+
+    my $uri = LJ::Request->uri;
     return unless $uri eq '/index.bml' or $uri eq '/';
 
     ## Don't show to logged-in paid and basic accounts

Tags: ljcom, pm, vadvs
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