|
@@ 2510-2511 (lines=2) @@
|
| 2507 |
|
$tag['validate']($tag, $data, $disabled, $params); |
| 2508 |
|
|
| 2509 |
|
$code = $tag['content']; |
| 2510 |
|
foreach ($data as $k => $d) |
| 2511 |
|
$code = strtr($code, array('$' . ($k + 1) => trim($d))); |
| 2512 |
|
$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen); |
| 2513 |
|
$pos += strlen($code) - 1 + 2; |
| 2514 |
|
} |
|
@@ 2528-2529 (lines=2) @@
|
| 2525 |
|
$tag['validate']($tag, $data, $disabled, $params); |
| 2526 |
|
|
| 2527 |
|
// Fix after, for disabled code mainly. |
| 2528 |
|
foreach ($data as $k => $d) |
| 2529 |
|
$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d))); |
| 2530 |
|
|
| 2531 |
|
$open_tags[] = $tag; |
| 2532 |
|
|
|
@@ 2535-2536 (lines=2) @@
|
| 2532 |
|
|
| 2533 |
|
// Replace them out, $1, $2, $3, $4, etc. |
| 2534 |
|
$code = $tag['before']; |
| 2535 |
|
foreach ($data as $k => $d) |
| 2536 |
|
$code = strtr($code, array('$' . ($k + 1) => trim($d))); |
| 2537 |
|
$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1); |
| 2538 |
|
$pos += strlen($code) - 1 + 2; |
| 2539 |
|
} |