mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 01:44:27 +02:00
MDL-23165 The mediaplugin filter should be on by default in Moodle 2.0
This commit is contained in:
parent
9eb8dccc1b
commit
89f1b1864b
filter/mediaplugin
35
filter/mediaplugin/db/install.php
Normal file
35
filter/mediaplugin/db/install.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Media filter post install hook
|
||||
*
|
||||
* @package filter_mediaplugin
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
function xmldb_filter_mediaplugin_install() {
|
||||
global $CFG;
|
||||
|
||||
//enable by default in new installs and upgrades (because we did not have version.php before)
|
||||
// but only if insecure swf embedding is off - we definitely do not want to open security hopes on existing sites
|
||||
if (empty($CFG->filter_mediaplugin_enable_swf)) {
|
||||
filter_set_global_state('filter/mediaplugin', TEXTFILTER_ON);
|
||||
}
|
||||
}
|
||||
|
26
filter/mediaplugin/version.php
Normal file
26
filter/mediaplugin/version.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Media filter
|
||||
*
|
||||
* @package filter_mediaplugin
|
||||
* @copyright 2010 Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$plugin->version = 2010070900;
|
Loading…
x
Reference in New Issue
Block a user