Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79663 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2012-07-22 03:30:53


Author: danieljames
Date: 2012-07-22 03:30:52 EDT (Sun, 22 Jul 2012)
New Revision: 79663
URL: http://svn.boost.org/trac/boost/changeset/79663

Log:
Website: Don't list old filter fields.
Text files modified:
   website/public_html/beta/doc/libraries.php | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: website/public_html/beta/doc/libraries.php
==============================================================================
--- website/public_html/beta/doc/libraries.php (original)
+++ website/public_html/beta/doc/libraries.php 2012-07-22 03:30:52 EDT (Sun, 22 Jul 2012)
@@ -34,8 +34,8 @@
 $filter_fields = Array(
     'std-proposal' => 'Standard Proposals',
     'std-tr1' => 'TR1 libraries',
- 'header-only' => 'old',
- 'autolink' => 'old');
+ 'header-only' => '[old]',
+ 'autolink' => '[old]');
 $sort_fields = Array(
     'name' => 'Name',
     'boost-version' => 'First Release',
@@ -60,7 +60,7 @@
     if(!isset($filter_fields[$filter_value])) {
         echo 'Invalid filter field.'; exit(0);
     }
- if ($filter_fields[$filter_value] == 'old') {
+ if ($filter_fields[$filter_value] == '[old]') {
         echo 'Filter field no longer supported.'; exit(0);
     }
 }
@@ -226,7 +226,9 @@
                       <li><?php option_link($description, 'view', $key); ?></li><?php
                     endforeach; ?>
                     <?php foreach($filter_fields as $key => $description) : ?>
+ <?php if (!preg_match('@^\[.*\]$@', $description)) : ?>
                       <li><?php option_link($description, 'view', 'filtered_'.$key); ?></li>
+ <?php endif; ?>
                     <?php endforeach; ?>
                     </ul>
                   </div>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk