Снорк (nely_snork) wrote in changelog,
Снорк
nely_snork
changelog

[livejournal] r15603: LJSUP-4663: Don't show links to /search/...

Committer: narefieva
LJSUP-4663: Don't show links to /search/ page when 'yandex_search' is disabled.

U   trunk/htdocs/directory.bml
U   trunk/htdocs/interests.bml
Modified: trunk/htdocs/directory.bml
===================================================================
--- trunk/htdocs/directory.bml	2009-08-14 09:09:12 UTC (rev 15602)
+++ trunk/htdocs/directory.bml	2009-08-14 11:13:08 UTC (rev 15603)
@@ -35,8 +35,12 @@
             $count{$_->{'statcat'}}->{$_->{'statkey'}} = $_->{'statval'};
         }
 
+        $ret .= qq{
+                <p class="b-message b-message-suggestion"><a href="$LJ::SITEROOT/search/">$ML{'.newsearch.link'}</a></p>
+        } unless $LJ::DISABLED{'yandex_search'};
+        
         $ret .= qq {
-            <p class=\"b-message b-message-suggestion\"><a href=\"$LJ::SITEROOT/search/\">$ML{'.newsearch.link'}</a></p>
+
             <div id="States">
                 <?h1 $ML{'.browse.usa.title'} h1?>
                 <?p $ML{'.browse.usa.desc'} p?>

Modified: trunk/htdocs/interests.bml
===================================================================
--- trunk/htdocs/interests.bml	2009-08-14 09:09:12 UTC (rev 15602)
+++ trunk/htdocs/interests.bml	2009-08-14 11:13:08 UTC (rev 15603)
@@ -394,7 +394,8 @@
 
         my $ret = '';
 
-	    $ret .= "<p class=\"b-message b-message-suggestion\" style=\"margin-right:330px;\"><a href=\"$LJ::SITEROOT/search/\">$ML{'.newsearch.link'}</a></p>";
+	    $ret .= qq{<p class="b-message b-message-suggestion" style="margin-right:330px;"><a href="$LJ::SITEROOT/search/">$ML{'.newsearch.link'}</a></p>"}
+	        unless $LJ::DISABLED{'yandex_search'};
         $ret .= "<table>";
         $ret .= "<tr valign='middle'><td class='findandmodify'>$ML{'.interested.in'}</td>";
         $ret .= "<td class='findandmodify'><form method='get' action='interests.bml'>";

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