root/releases/0.1.1b/units/weblogs/weblogs_text_process.php

Revision 2, 483 bytes (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Processes text
4     
5         if (isset($parameter)) {
6             $run_result .= nl2br($parameter);
7         }
8         
9         global $individual;
10         
11         if (!isset($individual) || $individual != 1) {
12             $run_result = preg_replace("/\{\{cut\}\}(.|\n)*(\{\{uncut\}\})?/","{{more}}",$run_result);
13         } else {
14             // $run_result = preg_replace("/\{\{cut\}\}/","",$run_result);
15             $run_result = str_replace("{{cut}}","",$run_result);
16             $run_result = str_replace("{{uncut}}","",$run_result);
17         }
18
19 ?>
Note: See TracBrowser for help on using the browser.