Commit Graph

39 Commits

Author SHA1 Message Date
Marina Glancy 0c1a133ea0 MDL-46280 filter_activitynames: sort activities by length in reverse order 2014-07-08 10:54:04 +08:00
Petr Škoda f381e6cdcc MDL-44368 use $cm->uservisible in activity names filter
This allows proper linking of groupmembersonly and conditional activities.
2014-03-20 17:29:59 +08:00
Marina Glancy 88715ba2c0 MDL-41192 course: Can not write to the read-only properties of cm_info 2013-09-10 14:11:30 +10:00
Frederic Massart b123a543a6 MDL-40463 libraries: Deprecate get_courseid_from_context() 2013-07-11 15:54:36 +08:00
Marina Glancy f10a2e4207 MDL-39785 bug fix: filter_activitynames was not applied correctly 2013-05-22 17:30:04 +10:00
Marina Glancy 96bc647755 MDL-31885 The activity name auto-linking filter should not create links to webpages it was created on 2013-02-26 13:35:24 +11:00
Marina Glancy 173115e14c MDL-33774 filter_activitynames removed hardcoded label module type 2013-02-14 19:46:19 +11:00
Petr Skoda 68a7c9a696 MDL-32095 some more E_STRICT fixes 2012-03-26 11:47:15 +02:00
David Mudrak dcfffe3072 MDL-24531 Extend filter manager API so that options can be passed to the filters
The only option passed at the moment is the original format in which the
user inserted the text. Other options can be added later if/when needed.
2010-10-07 08:57:20 +00:00
Petr Skoda 35716b8682 MDL-22001 filter_text() and filter_string() now use context parameter instead of courseid, PAGE->context is used only as a fallback; moved comment stuff away from format_text() because it does not belong there; filterlib is not using courseid except for legacy filters; fixed coding style in filters;?improved php docs; fixed upgrade of filters (should be in plugins, not core) 2010-07-30 20:51:01 +00:00
Petr Skoda 9a9012dc8f MDL-21590 fixed icons in navigation lib + clean up of modinfo (planned removeal of legacy use of urlencode since 1.8 - we use serialize and utf8 is ok now) 2010-02-14 20:18:10 +00:00
Petr Skoda 4aea3cc7cd MDL-20204 the ultimate fix for our frames (theyare not accessbile, but anyway); instead of adding the target to each element when creating html we use yui to set the target from page footer via JS - this fixes the links and forms in all elements in pages with frametop layout 2010-02-11 13:27:02 +00:00
Petr Skoda 4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
tjhunt ccc161f8f0 filters: MDL-7336 change weblib to use the new code
* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib
2009-04-13 06:56:32 +00:00
dongsheng 9e3f34d1c7 "FILTER/MDL-14582, filters 2.0, compatible with old filters" 2008-12-19 02:16:00 +00:00
stronk7 d533ff3abe MDL-17545 activity names filter: Improve handling when name contains htmlentities() chars. Merged from 19_STABLE 2008-12-07 18:57:38 +00:00
skodak 219f652b91 MDL-14679 upgrade $DB conversion 2008-05-31 18:05:42 +00:00
skodak dd97c32868 MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE 2008-01-24 20:33:50 +00:00
stronk7 6a42a9b456 small typo in var name
Merged from MOODLE_18_STABLE
2007-03-19 16:12:42 +00:00
martinlanghoff 9aa9080756 Auto-linking filters: fix serious caching bug in forum mailouts
Autolinking of glossaries, activity, resources and wiki names were using a
trivial single-entry cache implemented with static vars. The cache was _not_
keyed on course.

This bug was visible during forum_cron() which walks many courses. The cache
would get "stuck" on the first course that had something to put in the cache.
All mailouts from there onwards would autolink to stuff in the wrong course.
2007-03-19 06:33:45 +00:00
skodak fa73873105 MDL-8050 1.2 Remove all target="_top" - refactoring of previous commit 2007-01-04 18:23:55 +00:00
skodak e25cb71041 MDL-8050 1.2 Remove all target="_top" 2007-01-03 19:24:48 +00:00
stronk7 fea43a7f51 Casting $course->modinfo to string prevents one notice to
be showed when it's null, returning false as desired.
2006-09-04 21:12:37 +00:00
stronk7 f4ba785b13 Solved one problem with frames and activitynames filter.
(http://moodle.org/mod/forum/discuss.php?d=28382)

Merged from MOODLE_15_STABLE
2006-01-11 15:22:13 +00:00
stronk7 32a50e2833 Avoid empty or unlinkable activity names
Merged from MOODLE_15_STABLE
2005-09-05 22:32:06 +00:00
stronk7 34d186ebe9 I forgot to look for cache. Woking now. 2005-04-25 22:03:57 +00:00
stronk7 eb6eb58ec5 Cache array of filterobjects per request. 2005-04-25 21:55:36 +00:00
moodler facc743aa2 Rewritten to use the new generic filter function. (SE) 2005-03-04 10:12:44 +00:00
martinlanghoff 07158c1ed0 Merged from MOODLE_14_STABLE - Cleanup of warnings in filter/activitynames 2005-02-14 07:40:46 +00:00
julmis 5096a8eada Adding <span class="nolink"> excluding. 2005-01-30 14:21:52 +00:00
stronk7 00a3a66a45 Some dyslexic problem solved! :-D
Merged from MOODLE_14_STABLE
2004-12-13 01:31:54 +00:00
stronk7 3a558dd9a8 Now activity names are sorted by name length to avoid Bug 2282
(http://moodle.org/bugs/bug.php?op=show&bugid=2282)

Merged from MOODLE_14_STABLE
2004-12-13 01:25:23 +00:00
gustav_delius 222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
moodler df1c46115b Improvement to filters, providing speed boost AND better compatibility
with Turck MMCache.

Filter function must now have a particular name

   eg resource_filter

where "resource" is the name of the directory that filter.php is in.
2004-08-08 06:57:44 +00:00
stronk7 2ed07cc70a Solved bug 1491 in all the "linking" filters.
(http://moodle.org/bugs/bug.php?op=show&bugid=1491)
Bugfix 001
2004-05-30 01:00:16 +00:00
stronk7 6bda940380 Small change to make it a bit more consistent. No significant. 2004-05-27 23:43:08 +00:00
moodler 19f671d373 Fixed quotes in titles ... well nearly. 2004-05-24 17:58:46 +00:00
stronk7 341d554fdb Avoid linking to labels and to hidden activities... 2004-05-24 17:43:11 +00:00
stronk7 45a1ad99a2 Allow every activity name in texts to be linked to the
original activity.
Bug 1454.
(http://moodle.org/bugs/bug.php?op=show&bugid=1454)
2004-05-24 17:30:56 +00:00