moodle/filter/censor
Eloy Lafuente (stronk7) 9d6aa39985 MDL-71583 versions: Add all the missing full-stops to version/requires
It seems that the new phpcs3 checker is now controlling those
line comments that previously were ignored.

This commit just looks for all the cases and bulk-add
them when needed. The bash script (mac) used to add all them is:

while read -r line; do
    arr=(${line//:/ })
    if [[ -n ${arr[0]} ]] && [[ -n ${arr[1]} ]]; then
        echo "  file ${arr[0]}, line ${arr[1]}"
        sed -i "${arr[1]}s/\$/\./" ${arr[0]}
    fi
done < <(find . -name version.php | xargs ag --nomultiline '>(version|requires) *=.*//.*[^;\.]$')
2021-05-11 20:11:07 +02:00
..
classes/privacy MDL-61896 filter: Implement privacy API for all filters 2018-04-08 15:55:37 +08:00
lang/en MDL-61896 filter: Implement privacy API for all filters 2018-04-08 15:55:37 +08:00
filter.php MDL-24531 Extend filter manager API so that options can be passed to the filters 2010-10-07 08:57:20 +00:00
README.txt
settings.php MDL-42243 fix filter settings regression and support standard settings.php 2013-10-12 13:38:34 +02:00
version.php MDL-71583 versions: Add all the missing full-stops to version/requires 2021-05-11 20:11:07 +02:00

//////////////////////////
//                      //
//  Censorship Filter   //
//                      //
//////////////////////////

This is a very simple Text Filter that searches text
being output to the screen, replacing "bad" words
with other words.

To customise the word list, use the censor settings page
in the filters administration page.

If no customised list has been provided, a default list
specified in the current language pack will be used. Note that
the custom list is an alternative to the default list not
an addition to it.