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

[livejournal] r15604: 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 11:13:08 UTC (rev 15603)
+++ trunk/htdocs/directory.bml	2009-08-14 11:31:07 UTC (rev 15604)
@@ -193,7 +193,9 @@
             <a href="$url"><< $ML{'.new_search'}</a>
         </div>
     };
-    $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"><a href="$LJ::SITEROOT/search/">$ML{'.newsearch.link'}</a></p>
+    } unless $LJ::DISABLED{'yandex_search'};
 
     $ret .= qq {
         <?h1 $ML{'.search_results'} h1?>

Modified: trunk/htdocs/interests.bml
===================================================================
--- trunk/htdocs/interests.bml	2009-08-14 11:13:08 UTC (rev 15603)
+++ trunk/htdocs/interests.bml	2009-08-14 11:31:07 UTC (rev 15604)
@@ -394,7 +394,7 @@
 
         my $ret = '';
 
-	    $ret .= qq{<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>";
@@ -530,7 +530,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 .= "<?p $ML{'.interests.text'} p?>";
     $ret .= "<table cellspacing='5' style='margin-top: 10px; margin-left: 30px; margin-bottom: 10px;'>";
 

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