Skip to content

Commit 2957a2a

Browse files
committed
change to block-dependency, really
1 parent 21040de commit 2957a2a

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

classes/local/backup/restore_lifecycle_workflow.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ private function all_subplugins_installed() {
174174
$this->errors[] = get_string('restore_step_does_not_exist', 'tool_lifecycle', $step->subpluginname);
175175
}
176176
if ($step->subpluginname == 'opencast') {
177-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
177+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
178178
$a = new \stdClass();
179179
$a->lifecyclesubplugin = get_string('step', 'tool_lifecycle') . ' ' . 'opencast';
180-
$a->plugin = "tool_opencast";
180+
$a->plugin = "block_opencast";
181181
$this->errors[] = get_string('plugindependencynotmet', 'tool_lifecycle', $a);
182182
}
183183
}
@@ -197,10 +197,10 @@ private function all_subplugins_installed() {
197197
}
198198
}
199199
if ($trigger->subpluginname == 'opencast') {
200-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
200+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
201201
$a = new \stdClass();
202202
$a->lifecyclesubplugin = get_string('trigger', 'tool_lifecycle') . ' ' . 'opencast';
203-
$a->plugin = "tool_opencast";
203+
$a->plugin = "block_opencast";
204204
$this->errors[] = get_string('plugindependencynotmet', 'tool_lifecycle', $a);
205205
}
206206
}

classes/local/manager/step_manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static function get_chooseable_step_types() {
262262
$result = [];
263263
foreach ($steps as $id => $step) {
264264
if ($id == 'opencast') {
265-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
265+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
266266
continue;
267267
}
268268
}

classes/local/manager/trigger_manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static function get_chooseable_trigger_types() {
275275
continue;
276276
}
277277
} else if ($id == 'opencast') {
278-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
278+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
279279
continue;
280280
}
281281
}

subplugins.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@
7575
'text-danger ml-1');
7676
}
7777
} else if ($trigger == 'opencast') {
78-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
78+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
7979
$a = new \stdClass();
8080
$a->lifecyclesubplugin = get_string('trigger', 'tool_lifecycle') . ' ' . 'opencast';
81-
$a->plugin = "tool_opencast";
81+
$a->plugin = "block_opencast";
8282
echo \html_writer::span(get_string('plugindependencynotmet', 'tool_lifecycle', $a),
8383
'text-danger ml-1');
8484
}
@@ -107,10 +107,10 @@
107107
if ($plugindescription) {
108108
echo html_writer::div($plugindescription);
109109
if ($step == 'opencast') {
110-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
110+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
111111
$a = new \stdClass();
112112
$a->lifecyclesubplugin = get_string('step', 'tool_lifecycle') . ' ' . 'opencast';
113-
$a->plugin = "tool_opencast";
113+
$a->plugin = "block_opencast";
114114
echo \html_writer::span(get_string('plugindependencynotmet', 'tool_lifecycle', $a),
115115
'text-danger ml-1');
116116
}

workflowoverview.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@
224224
}
225225
}
226226
} else if ($trigger->subpluginname == 'opencast') {
227-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
227+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
228228
$a = new \stdClass();
229229
$a->lifecyclesubplugin = get_string('trigger', 'tool_lifecycle') . ' ' . 'opencast';
230-
$a->plugin = "tool_opencast";
230+
$a->plugin = "block_opencast";
231231
echo $OUTPUT->notification(get_string('workflownotvalid', 'tool_lifecycle')." ".
232232
get_string('plugindependencynotmet', 'tool_lifecycle', $a), 'error');
233233
echo $renderer->footer();
@@ -239,10 +239,10 @@
239239
// Steps: Check if plugin dependencies are met.
240240
foreach ($steps as $step) {
241241
if ($step->subpluginname == 'opencast') {
242-
if (lifecycle_is_plugin_installed('opencast', 'tool') === false) {
242+
if (lifecycle_is_plugin_installed('opencast', 'block') === false) {
243243
$a = new \stdClass();
244244
$a->lifecyclesubplugin = get_string('step', 'tool_lifecycle') . ' ' . 'opencast';
245-
$a->plugin = "tool_opencast";
245+
$a->plugin = "block_opencast";
246246
echo $OUTPUT->notification(get_string('workflownotvalid', 'tool_lifecycle')." ".
247247
get_string('plugindependencynotmet', 'tool_lifecycle', $a), 'error');
248248
echo $renderer->footer();

0 commit comments

Comments
 (0)