Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 24... Línea 24...
24
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @package filter_mediaplugin
25
 * @package filter_mediaplugin
26
 */
26
 */
Línea 27... Línea 27...
27
 
27
 
28
require(__DIR__ . '/../../../config.php');
-
 
Línea 29... Línea 28...
29
require_once($CFG->dirroot . '/filter/mediaplugin/filter.php');
28
require(__DIR__ . '/../../../config.php');
30
 
29
 
31
// Only available to site admins.
30
// Only available to site admins.
32
require_login();
31
require_login();
Línea 43... Línea 42...
43
// Enable all players.
42
// Enable all players.
44
$enabledmediaplugins = \core\plugininfo\media::get_enabled_plugins();
43
$enabledmediaplugins = \core\plugininfo\media::get_enabled_plugins();
45
\core\plugininfo\media::set_enabled_plugins('vimeo,youtube,videojs,html5audio,html5video');
44
\core\plugininfo\media::set_enabled_plugins('vimeo,youtube,videojs,html5audio,html5video');
Línea 46... Línea 45...
46
 
45
 
47
// Create plugin.
46
// Create plugin.
Línea 48... Línea 47...
48
$filterplugin = new filter_mediaplugin(null, array());
47
$filterplugin = new \filter_mediaplugin\text_filter(null, []);
49
 
48
 
Línea 50... Línea 49...
50
// Note: As this is a developer test page, language strings are not used: all
49
// Note: As this is a developer test page, language strings are not used: all