From 2ed07cc70a05f9a3f0b9c5059bfd6fb38f9118ea Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 30 May 2004 01:00:16 +0000 Subject: [PATCH] Solved bug 1491 in all the "linking" filters. (http://moodle.org/bugs/bug.php?op=show&bugid=1491) Bugfix 001 --- filter/activitynames/filter.php | 4 ++-- mod/glossary/filter.php | 2 +- mod/resource/filter.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/filter/activitynames/filter.php b/filter/activitynames/filter.php index 78c661f762..b35d748d96 100644 --- a/filter/activitynames/filter.php +++ b/filter/activitynames/filter.php @@ -2,7 +2,7 @@ //This function provides automatic linking to //activities when its name (title) is found inside every Moodle text //It's based in the glosssary filter by Williams Castillo - //Modifications by stronk7. Enjoy! :-) + //Modifications by stronk7. $textfilter_function='activitynames_filter'; @@ -84,7 +84,7 @@ //Now avoid searching inside links $links = array(); - preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); + preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); foreach (array_unique($list_of_links[0]) as $key=>$value) { $links['<@'.$key.'@>'] = $value; } diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php index 51da92fd41..d8003a7b22 100644 --- a/mod/glossary/filter.php +++ b/mod/glossary/filter.php @@ -164,7 +164,7 @@ //Now avoid searching inside links $links = array(); - preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); + preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); foreach (array_unique($list_of_links[0]) as $key=>$value) { $links['<@'.$key.'@>'] = $value; } diff --git a/mod/resource/filter.php b/mod/resource/filter.php index 03c57669a5..c670f403e5 100644 --- a/mod/resource/filter.php +++ b/mod/resource/filter.php @@ -102,7 +102,7 @@ //Now avoid searching inside links $links = array(); - preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); + preg_match_all('/(.+?)<\/A>/is',$text,$list_of_links); foreach (array_unique($list_of_links[0]) as $key=>$value) { $links['<@'.$key.'@>'] = $value; } -- 2.39.5