mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-29624 Media embedding system : phpdoc tweaks.
This commit is contained in:
parent
e1e3fa217f
commit
83c9d449e0
3 changed files with 8 additions and 16 deletions
|
@ -35,26 +35,18 @@
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
if (!defined('CORE_MEDIA_VIDEO_WIDTH')) {
|
if (!defined('CORE_MEDIA_VIDEO_WIDTH')) {
|
||||||
/**
|
// Default video width if no width is specified; some players may do something
|
||||||
* Default video width if no width is specified; some players may do something
|
// more intelligent such as use real video width.
|
||||||
* more intelligent such as use real video width.
|
// May be defined in config.php if required.
|
||||||
*
|
|
||||||
* May be defined in config.php if required.
|
|
||||||
*/
|
|
||||||
define('CORE_MEDIA_VIDEO_WIDTH', 400);
|
define('CORE_MEDIA_VIDEO_WIDTH', 400);
|
||||||
}
|
}
|
||||||
if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) {
|
if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) {
|
||||||
/**
|
// Default video height. May be defined in config.php if required.
|
||||||
* Default video height. May be defined in config.php if required.
|
|
||||||
*/
|
|
||||||
define('CORE_MEDIA_VIDEO_HEIGHT', 300);
|
define('CORE_MEDIA_VIDEO_HEIGHT', 300);
|
||||||
}
|
}
|
||||||
if (!defined('CORE_MEDIA_AUDIO_WIDTH')) {
|
if (!defined('CORE_MEDIA_AUDIO_WIDTH')) {
|
||||||
/**
|
// Default audio width if no width is specified.
|
||||||
* Default audio width if no width is specified.
|
// May be defined in config.php if required.
|
||||||
*
|
|
||||||
* May be defined in config.php if required.
|
|
||||||
*/
|
|
||||||
define('CORE_MEDIA_AUDIO_WIDTH', 300);
|
define('CORE_MEDIA_AUDIO_WIDTH', 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2942,7 +2942,7 @@ class core_media_renderer extends plugin_renderer_base {
|
||||||
protected function get_players() {
|
protected function get_players() {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
// Save time by only building the list once
|
// Save time by only building the list once.
|
||||||
if (!$this->players) {
|
if (!$this->players) {
|
||||||
// Get raw list of players.
|
// Get raw list of players.
|
||||||
$players = $this->get_players_raw();
|
$players = $this->get_players_raw();
|
||||||
|
|
|
@ -42,7 +42,7 @@ class medialib_testcase extends advanced_testcase {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
// Reset CFG
|
// Reset CFG.
|
||||||
$this->resetAfterTest(true);
|
$this->resetAfterTest(true);
|
||||||
|
|
||||||
// Consistent initial setup: all players disabled.
|
// Consistent initial setup: all players disabled.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue