Remove old images and logos
[elgg.git] / units / weblogs / weblogs_text_process.php
blob09da3b5ad8ccf193a950d6f878210a007352a48e
1 <?php
3 // Processes text
5 if (isset($parameter)) {
6 $run_result .= nl2br($parameter);
10 // URLs to links
12 $run_result = run("weblogs:html_activate_urls", $run_result);
14 // Text cutting
16 global $individual;
18 if (!isset($individual) || $individual != 1) {
19 $run_result = preg_replace("/\{\{cut\}\}(.|\n)*(\{\{uncut\}\})?/","{{more}}",$run_result);
20 } else {
21 // $run_result = preg_replace("/\{\{cut\}\}/","",$run_result);
22 $run_result = str_replace("{{cut}}","",$run_result);
23 $run_result = str_replace("{{uncut}}","",$run_result);