Skip to content

Commit 7a281cd

Browse files
authored
Merge pull request #9 from Snickser/dev
Dev
2 parents 8fe2b6a + 1c2651b commit 7a281cd

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

db/install.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
// This file is part of the bank paymnts module for Moodle - http://moodle.org/
3+
//
4+
// Moodle is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// Moodle is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16+
17+
/**
18+
* media_rutube installer script.
19+
*
20+
* @package media_rutube
21+
* @copyright 2024 Alex Orlov <snickser@gmail.com>
22+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23+
*/
24+
25+
/**
26+
* Enabler
27+
*
28+
* @return boolean
29+
*/
30+
function xmldb_media_rutube_install() {
31+
global $CFG;
32+
33+
// Enable the plugin on installation. It still needs to be configured and enabled for accounts.
34+
$order = (!empty($CFG->media_plugins_sortorder)) ? explode(',', $CFG->media_plugins_sortorder) : [];
35+
set_config('media_plugins_sortorder', join(',', array_merge($order, ['rutube'])));
36+
}

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2025031700; // The current plugin version (Date: YYYYMMDDXX).
27+
$plugin->version = 2025032700; // The current plugin version (Date: YYYYMMDDXX).
2828
$plugin->requires = 2020061500; // Requires this Moodle version.
2929
$plugin->component = 'media_rutube'; // Full name of the plugin (used for diagnostics).
30-
$plugin->release = '1.0';
30+
$plugin->release = '1.1';
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)