Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79636 - website/public_html/beta
From: dnljms_at_[hidden]
Date: 2012-07-21 03:19:17


Author: danieljames
Date: 2012-07-21 03:19:16 EDT (Sat, 21 Jul 2012)
New Revision: 79636
URL: http://svn.boost.org/trac/boost/changeset/79636

Log:
Website: Only show current libraries in sitemap.
Text files modified:
   website/public_html/beta/sitemap.xml.php | 9 ++++++++-
   1 files changed, 8 insertions(+), 1 deletions(-)

Modified: website/public_html/beta/sitemap.xml.php
==============================================================================
--- website/public_html/beta/sitemap.xml.php (original)
+++ website/public_html/beta/sitemap.xml.php 2012-07-21 03:19:16 EDT (Sat, 21 Jul 2012)
@@ -9,6 +9,13 @@
 
 <?php
 
+// Returns true if the library is part of the current release of boost.
+
+function current_version_filter($lib) {
+ global $boost_current_version;
+ return explode('.',$lib['boost-version']) <= $boost_current_version;
+}
+
 function xmlentities($text) {
     return str_replace(
         array('&', '<', '>', '"', "'"),
@@ -39,7 +46,7 @@
         unserialize(file_get_contents(dirname(__FILE__) . '/generated/libraries.txt')) :
         new boost_libraries(dirname(__FILE__) . '/doc/libraries.xml');
 
-foreach ($libs->get() as $lib) {
+foreach ($libs->get(null, 'current_version_filter') as $lib) {
     echo_sitemap_url("doc/libs/release/$lib[documentation]", '1.0', 'daily');
 }
 


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