Skip to content

Commit 0f926e0

Browse files
authored
Merge pull request #926 from nextcloud/backport-925-use-util-methods
[stable10] Load the Template class in case it's not loaded
2 parents f68d5d1 + 93a3b7b commit 0f926e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/workflowengine/lib/AppInfo/Application.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121

2222
namespace OCA\WorkflowEngine\AppInfo;
2323

24-
use OCP\Util;
25-
use OCP\WorkflowEngine\RegisterCheckEvent;
26-
2724
class Application extends \OCP\AppFramework\App {
2825

2926
public function __construct() {
@@ -41,6 +38,11 @@ public function registerHooksAndListeners() {
4138
$dispatcher->addListener(
4239
'OCP\WorkflowEngine::loadAdditionalSettingScripts',
4340
function() {
41+
if (!function_exists('style')) {
42+
// This is hacky, but we need to load the template class
43+
class_exists('OCP\Template', true);
44+
}
45+
4446
style('workflowengine', [
4547
'admin',
4648
]);

0 commit comments

Comments
 (0)