|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66629 - website/public_html/beta/doc
From: dnljms_at_[hidden]
Date: 2010-11-17 16:16:18
Author: danieljames
Date: 2010-11-17 16:16:17 EST (Wed, 17 Nov 2010)
New Revision: 66629
URL: http://svn.boost.org/trac/boost/changeset/66629
Log:
Tweak version check.
Text files modified:
website/public_html/beta/doc/display_libs.php | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: website/public_html/beta/doc/display_libs.php
==============================================================================
--- website/public_html/beta/doc/display_libs.php (original)
+++ website/public_html/beta/doc/display_libs.php 2010-11-17 16:16:17 EST (Wed, 17 Nov 2010)
@@ -61,9 +61,13 @@
}
$location = get_archive_location('@^[/]([^/]+)[/](.*)$@',$_SERVER["PATH_INFO"],true,false);
-$is_beta = strpos($location['version'], 'beta') !== FALSE &&
- strpos($_SERVER['HTTP_HOST'], 'beta') !== FALSE;
-if (!$is_beta && boost_future_version($location['version'])) {
+$beta_site = strpos($_SERVER['HTTP_HOST'], 'beta') !== FALSE;
+$beta_docs = strpos($location['version'], 'beta') !== FALSE;
+if (!$beta_site && $beta_docs) {
+ file_not_found($location['file']);
+ return;
+}
+if (!$beta_docs && boost_future_version($location['version'])) {
file_not_found($location['file'],
"Documentation for this version has not been uploaded yet. ".
"Documentation is only uploaded when it's fully released, ".
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