diff options
| author | Christian Fowler <spider@viovio.com> | 2007-05-17 18:50:28 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-05-17 18:50:28 +0000 |
| commit | df0055fe748cba93d5385b53e8e3df2ef7c71edc (patch) | |
| tree | 98ba976682f0a68fa415b90c45de9470937ad2a3 /LibertySystem.php | |
| parent | 43ca21cfbdb6a9419b6fc1ade9523f4c81bc58e8 (diff) | |
| download | liberty-df0055fe748cba93d5385b53e8e3df2ef7c71edc.tar.gz liberty-df0055fe748cba93d5385b53e8e3df2ef7c71edc.tar.bz2 liberty-df0055fe748cba93d5385b53e8e3df2ef7c71edc.zip | |
first crack at stencils. They work! woot! tidy up still needed.
Diffstat (limited to 'LibertySystem.php')
| -rwxr-xr-x | LibertySystem.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/LibertySystem.php b/LibertySystem.php index 0faade0..d13d430 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.69 2007/05/17 14:14:29 nickpalmer Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.70 2007/05/17 18:50:28 spiderr Exp $ * @author spider <spider@steelsun.com> */ @@ -688,8 +688,13 @@ class LibertySystem extends LibertyBase { * @return TRUE on success, FALSE on failure - mErrors will contain reason for failure */ function parse_data_plugins( &$data, &$preparsed, &$noparsed, &$pParser, &$pCommonObject ) { - global $gLibertySystem; + global $gLibertySystem, $gBitSystem; // Find the plugins + if( $gBitSystem->isPackageActive( 'stencil' ) ) { + require_once( STENCIL_PKG_PATH.'BitStencil.php' ); + $data = preg_replace_callback("/\{\{\/?([^|]+)([^\}]*)\}\}/", 'parse_stencil_data', $data ); + } + // note: $curlyTags[0] is the complete match, $curlyTags[1] is plugin name, $curlyTags[2] is plugin arguments preg_match_all("/\{\/?([A-Za-z0-9]+)([^\}]*)\}/", $data, $curlyTags); |
