Permalink
Browse files

- print also {@$var}

  • Loading branch information...
1 parent 1233ca8 commit 67c273ac0663b9f17da1e43ad0f8fa1d7bfcc354 Wolfram Kriesing committed May 20, 2003
Showing with 3 additions and 3 deletions.
  1. +3 −3 Xipe/Filter/Internal.php
View
6 Xipe/Filter/Internal.php
@@ -87,10 +87,10 @@ function makePhpTags($input)
$input = preg_replace( $regExp ,
'$1 ?>' ,
$input );
- // replace '< ?php $' by '< ?php echo $'
- $regExp = "/<\?php\s\\$/Um";
+ // replace '< ?php $' by '< ?php echo @$' optionally a @ before a $
+ $regExp = "/<\?php\s(@)?\\$/Um";
$input = preg_replace( $regExp ,
- '<?php echo $' ,
+ '<?php echo $1$' ,
$input );
// replace all php tags, where there is only one space after it
// by echoing the stuff that follows, but not if a control structure follows

0 comments on commit 67c273a

Please sign in to comment.