diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-28 21:30:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-28 21:30:48 +0000 |
commit | d788879db27c9acef001d4b68b6e7f10e5304ac2 (patch) | |
tree | 428fe9a6ad6e386894f300c3be6bce44aa0f9985 /includes/function.inc | |
parent | a0d83fc0e81f62b2ff8d655bb881ae36acb6ce8f (diff) | |
download | brdo-d788879db27c9acef001d4b68b6e7f10e5304ac2.tar.gz brdo-d788879db27c9acef001d4b68b6e7f10e5304ac2.tar.bz2 |
- update the linking mechanism: to link to a "node" (ex story) with title
"fubar", use [[fubar]] or [[fubar|link text]].
Diffstat (limited to 'includes/function.inc')
-rw-r--r-- | includes/function.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/function.inc b/includes/function.inc index ddd113844..eb1a08b3c 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -102,9 +102,9 @@ function format_tag($link, $text) { function format_text($text) { $src = array( // "/(<\/?)(\w+)([^>]*>)/e", // convert HTML to lower case - "/\[(([^\|]*?)(\|([^\|]*?))?)\]/e"); // [link|description] + "/\[\[(([^\|]*?)(\|([^\|]*?))?)\]\]/e"); // [link|description] $dst = array( // "'\\1'. strtolower('\\2') .'\\3'", // convert HTML to lower case - format_tag('\\2', '\\4')); // [link|description] + format_tag('\\2', '\\4')); // [link|description] return preg_replace($src, $dst, $text); } |