Skip to content

Commit

Permalink
Don't enable the filter on install
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim authored and golenkovm committed May 17, 2023
1 parent 65c9019 commit f325d38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
* Installs the OEmbed filter.
*/
function xmldb_filter_oembed_install() {
filter_set_global_state('filter/oembed', TEXTFILTER_ON);
if (!PHPUNIT_TEST) {
filter_set_global_state('filter/oembed', TEXTFILTER_ON);
}

// Insert the initial data elements from the instance's providers.
oembed::update_provider_data();
Expand Down

0 comments on commit f325d38

Please sign in to comment.