Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)
This commit is contained in:
@@ -17,16 +17,16 @@
|
||||
/**
|
||||
* Scheduled task: sync Adobe Connect recordings into Moodle.
|
||||
*
|
||||
* @package mod_meetletacbmarketplace
|
||||
* @package mod_meetletacbfree
|
||||
* @copyright 2026 MeetLet <info@meetlet.net>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace mod_meetletacbmarketplace\task;
|
||||
namespace mod_meetletacbfree\task;
|
||||
|
||||
use mod_meetletacbmarketplace\api\service;
|
||||
use mod_meetletacbmarketplace\local\instance;
|
||||
use mod_meetletacbmarketplace\local\recordings;
|
||||
use mod_meetletacbfree\api\service;
|
||||
use mod_meetletacbfree\local\instance;
|
||||
use mod_meetletacbfree\local\recordings;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
@@ -35,17 +35,17 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
class sync_recordings extends \core\task\scheduled_task {
|
||||
public function get_name() {
|
||||
return get_string('tasksync', 'meetletacbmarketplace');
|
||||
return get_string('tasksync', 'meetletacbfree');
|
||||
}
|
||||
|
||||
public function execute() {
|
||||
if (!\mod_meetletacbmarketplace\registration\manager::is_registered()) {
|
||||
if (!\mod_meetletacbfree\registration\manager::is_registered()) {
|
||||
mtrace('MeetLet registration: inactive — skip recording sync.');
|
||||
return;
|
||||
}
|
||||
global $DB;
|
||||
foreach ($DB->get_records('meetletacbmarketplace') as $activity) {
|
||||
foreach ($DB->get_records('meetlet_marketplace_meetings', ['instanceid' => $activity->id]) as $map) {
|
||||
foreach ($DB->get_records('meetletacbfree') as $activity) {
|
||||
foreach ($DB->get_records('meetletacbfree_meetings', ['instanceid' => $activity->id]) as $map) {
|
||||
try {
|
||||
$inst = instance::get_from_instanceid((int)$activity->id, (int)$map->groupid);
|
||||
$service = new service();
|
||||
|
||||
Reference in New Issue
Block a user