fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-06-04 05:34 am

[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=3524

[commit: http://hg.dwscoalition.org/dw-free/rev/b6855fd880c4]

http://bugs.dwscoalition.org/show_bug.cgi?id=3524

Only show the links to the shop if payments are enabled in this
installation.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/site/index.bml
--------------------------------------------------------------------------------
diff -r aa89589bfd4d -r b6855fd880c4 htdocs/site/index.bml
--- a/htdocs/site/index.bml	Fri Jun 04 13:20:19 2010 +0800
+++ b/htdocs/site/index.bml	Fri Jun 04 13:40:28 2010 +0800
@@ -93,7 +93,11 @@ body<=
 </div>
 <div id='maplinks-right'>
 
- <dl><dt><?_code return BML::ml('.maplinks.shop-title', { sitename => $LJ::SITENAMESHORT }); _code?></dt>
+<?_code
+if ( LJ::is_enabled( 'payments' ) ) {
+    my $shop_title = BML::ml('.maplinks.shop-title', { sitename => $LJ::SITENAMESHORT } );
+    return qq{
+ <dl><dt>$shop_title</dt>
   <dd><ul>
    <li><a href='/shop'><?_ml .maplinks.buy-points _ml?></a></li>
    <li><a href='/shop/gifts'><?_ml .maplinks.buy-circle _ml?></a></li>
@@ -102,6 +106,9 @@ body<=
    <li><a href='http://www.zazzle.com/dreamwidth*'><?_ml .maplinks.buy-merchandise _ml?></a></li>
    <li><a href='/shop/history'><?_ml .maplinks.payment-history _ml?></a></li>
   </ul></dd></dl>
+    };
+}
+_code?>
 
  <dl><dt><?_code return BML::ml('.maplinks.learn-site-title', { sitename => $LJ::SITENAMESHORT }); _code?></dt>
   <dd><ul>
--------------------------------------------------------------------------------