Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-08-19 05:32:25


Author: danieljames
Date: 2008-08-19 05:32:25 EDT (Tue, 19 Aug 2008)
New Revision: 48212
URL: http://svn.boost.org/trac/boost/changeset/48212

Log:
Limit the images that get themed.

At the moment the code for theming boostbook pages is replacing any png in an 'images' folder, which is removing the images from some documentation. As a temporary fix, only do this for certain filenames. Refs: #2221.

Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 2 +-
   1 files changed, 1 insertions(+), 1 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 2008-08-19 05:32:25 EDT (Tue, 19 Aug 2008)
@@ -273,7 +273,7 @@
         /* */
         for ($i = 0; $i < 8; $i++) {
             $text = preg_replace(
- '@<img src="[\./a-z]*images/([^.]+)\.png" alt="([^"]+)"([ /]*)>@Ssm',
+ '@<img src="[\./a-z]*images/(prev|up|home|next|tip|note|warning|important|caution|sidebar|hint|alert)\.png" alt="([^"]+)"([ /]*)>@Ssm',
                 '<img src="/gfx/space.png" alt="${2}" class="${1}_image" />',
                 $text );
         }


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