root/releases/0.1.2a/units/files/weblogs_text_process.php
| Revision 2, 318 bytes (checked in by sven, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | // Replace {{file:$id}} with links to files |
| 4 | |
| 5 | if (isset($parameter)) { |
| 6 | $functionbody = <<< END |
| 7 | |
| 8 | return run("files:links:make",\$matches[1]); |
| 9 | |
| 10 | END; |
| 11 | |
| 12 | $run_result = preg_replace_callback("/\{\{file:([0-9]+)\}\}/i",create_function('$matches',$functionbody),$run_result); |
| 13 | |
| 14 | } |
| 15 | |
| 16 | ?> |
Note: See TracBrowser for help on using the browser.
