Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59894 - in website/public_html/beta: common/code development
From: daniel_james_at_[hidden]
Date: 2010-02-25 03:43:05


Author: danieljames
Date: 2010-02-25 03:43:04 EST (Thu, 25 Feb 2010)
New Revision: 59894
URL: http://svn.boost.org/trac/boost/changeset/59894

Log:
Make the 'get_as_raw' parameter a string that lets you override the extractor instead.
Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 10 +++++-----
   website/public_html/beta/development/testing_results.php | 2 +-
   2 files changed, 6 insertions(+), 6 deletions(-)

Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2010-02-25 03:43:04 EST (Thu, 25 Feb 2010)
@@ -41,9 +41,9 @@
 function display_from_archive(
     $archive_location_details,
     $content_map = array(),
- $get_as_raw = false)
+ $extractor = null)
 {
- $_file = new boost_archive($archive_location_details, $content_map, $get_as_raw);
+ $_file = new boost_archive($archive_location_details, $content_map, $extractor);
 }
 
 class boost_archive
@@ -63,7 +63,7 @@
     function boost_archive(
         $archive_location_details,
         $content_map = array(),
- $get_as_raw = false)
+ $extractor = null)
     {
         $this->version_ = $archive_location_details['version'];
         $this->key_ = $archive_location_details['key'];
@@ -95,8 +95,8 @@
             }
         }
         
- if ($get_as_raw) $this->extractor_ = 'raw';
- else if (!$this->extractor_) $this->extractor_ = 'h404';
+ if ($extractor) $this->extractor_ = $extractor;
+ if (!$this->extractor_) $this->extractor_ = 'h404';
 
         $extractor_name = $this->extractor_.'_filter';
         $this->extractor_instance_ = new $extractor_name;

Modified: website/public_html/beta/development/testing_results.php
==============================================================================
--- website/public_html/beta/development/testing_results.php (original)
+++ website/public_html/beta/development/testing_results.php 2010-02-25 03:43:04 EST (Thu, 25 Feb 2010)
@@ -10,5 +10,5 @@
   array(
   //~ array(version-regex,path-regex,raw|simple|text|cpp|boost_book_html|boost_libs_html,mime-type),
   ),
- true // we always want raw output
+ 'raw' // we always want raw output
 );


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