Commit graph

26 commits

Author SHA1 Message Date
stronk7
4ffc25ce55 Fix A tag regex searching. MDL-15842 ; merged from 19_STABLE 2008-07-26 22:13:39 +00:00
jmg324
6c4ed854f6 MDL-12302 stopping filter_save_ignore_tags ignoring empty tags 2008-06-06 09:15:33 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
skodak
4090bcaee3 Activitynames filter case insensitive again for non-ascii languages MDL-6054 - I hope it will not be choking on invalid UTF-8 data; merged from MOODLE_17_STABLE 2006-10-17 19:46:35 +00:00
skodak
57f1b91497 fixed some incorrect strtolower() calls that were breaking non ascii languages MDL-6135 2006-10-07 20:47:54 +00:00
tjhunt
450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +00:00
martinlanghoff
b76169a214 filterlib/filter_phrases() - try to escape magic characters used internally by the filter mechanism -- Bug#5236 / WR#422
This is an attempt to fix filter problems caused by glossary matches on %
(which also affect matches on * and #). Works for the sample cases I have,
but we may be breaking subtly in other places.
2006-04-25 22:47:42 +00:00
skodak
d8eb52a2d0 fixed bug #2596 - filterlib is now adding popup javascript into html files 2006-03-03 23:25:27 +00:00
stronk7
413884c736 With the latest feature I introduced to filterlib (the ability
to specify a replacement phrase instead of printing the linked
phrase I introduced a bug about text being showed with the case
of the concept instead of the case of the text under case
insensitive filtering. Detected and solved now. Bug 3688.
(http://moodle.org/bugs/bug.php?op=show&bugid=3688)

Merged from MOODLE_15_STABLE
2005-07-05 16:43:48 +00:00
stronk7
0eddfc6625 Add a new attribute to the filterobject class.
Now it supports a replacementphrase to be passed
so, the original phrase will be replaced. Nothing happens
if empty. Part of bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)

Merged from MOODLE_15_STABLE
2005-06-22 23:24:50 +00:00
stronk7
dc3b522580 Latest speed improvement for link filters (more noticeable under PHP4). Bug 3138.
(http://moodle.org/bugs/bug.php?op=show&bugid=3138)
2005-05-21 00:22:14 +00:00
stronk7
156f67fd22 Do you like speed? 10%-15% bump with this version! B-)
Moved some code to two new specialised functions that
are only executed when something has changed in the
text avoiding some (from 2800 downto 150 in my test course!)
regexp calls and arrays generation.

The existing bug about concept strings contained in other concept
strings (e.g: "Test Quiz" and "Test Quiz II") becoming double-linked
in now out too.

I hope this is the latest revision to filterlib for a looong time.
Tested under PHP 4.3.11 and PHP 5.0.4, it would be very interesting
to test it under other versions/OSs.
2005-05-09 00:28:53 +00:00
stronk7
ed9fdf3e8b Some wrong isset sentences were forcing to
be always casesensitive and fullmatch!

Changed from !isset() to empty() to evaluate true/false correctly.
2005-05-08 17:53:32 +00:00
stronk7
9e92e26590 Solved problem with arrays of linkobjects being processed
by preg_quoted() causing real problems under PHP5. Now such
calculatios are cached if possible (PHP5). See bug 3148.
(http://moodle.org/bugs/bug.php?op=show&bugid=3138)
2005-05-08 17:25:28 +00:00
stronk7
902c63b023 Reducing a bit the number of replacements performed by the filter. ;-) 2005-04-27 18:34:38 +00:00
stronk7
29f46cb6fb Now it works using static instead of $_REQUEST. Thanks to Martin!
Now I know a bit more of PHP :-)
2005-03-22 17:29:02 +00:00
stronk7
a06967fdb9 Added support for $CFG->filtermatchoneperpage, allowing a phrase
to be linked only once in the entire page.
2005-03-21 23:47:21 +00:00
stronk7
a0d2e272d9 Missing global was preventing $CFG->filtermatchonepertext to work. 2005-03-21 23:18:41 +00:00
moodler
57f781f733 Changed variable name because Eloy has plans for $CFG->filtermatchoneperpage :-) 2005-03-21 08:37:43 +00:00
moodler
1f4af9a650 $CFG->filtermatchfirstonly will match first entry only 2005-03-20 17:12:19 +00:00
moodler
4161807b81 Fixed regular expression - Bug 2756 (SE) 2005-03-19 15:08:36 +00:00
moodler
89e1ce0474 More fixes for linking. Bug 2693. (SE) 2005-03-09 01:13:53 +00:00
moodler
71d4f59316 Fixed a bug in the ignore tags array - bug 2693 (SE) 2005-03-08 23:34:40 +00:00
moodler
21f6c44b05 New function to remove duplicate entries from an array of filterobjects 2005-03-08 07:45:01 +00:00
moodler
ff2fc9e22d Some buffing up ... no changes 2005-03-07 16:10:52 +00:00
moodler
a039c3af28 Generic filter function. It's a reworked version of the old glossary
filter and is now more efficient.(SE)
2005-03-04 10:10:24 +00:00