summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-18 12:00:59 +0200
committerJoas Schilling <coding@schilljs.com>2016-08-18 12:00:59 +0200
commitb4313f1969e588885406a7891fddaebff8a00776 (patch)
tree2f44323392af113ef366a0b1bf7fa4b52e81ab15 /apps/workflowengine
parent5580a77bd703877541687b72d7ab4ec50b2b0c7d (diff)
downloadnextcloud-server-b4313f1969e588885406a7891fddaebff8a00776.tar.gz
nextcloud-server-b4313f1969e588885406a7891fddaebff8a00776.zip
Load the Template class in case it's not loaded
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/AppInfo/Application.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/workflowengine/lib/AppInfo/Application.php b/apps/workflowengine/lib/AppInfo/Application.php
index b5e769d01d7..e968b40612f 100644
--- a/apps/workflowengine/lib/AppInfo/Application.php
+++ b/apps/workflowengine/lib/AppInfo/Application.php
@@ -21,9 +21,6 @@
namespace OCA\WorkflowEngine\AppInfo;
-use OCP\Util;
-use OCP\WorkflowEngine\RegisterCheckEvent;
-
class Application extends \OCP\AppFramework\App {
public function __construct() {
@@ -41,6 +38,11 @@ class Application extends \OCP\AppFramework\App {
$dispatcher->addListener(
'OCP\WorkflowEngine::loadAdditionalSettingScripts',
function() {
+ if (!function_exists('style')) {
+ // This is hacky, but we need to load the template class
+ class_exists('OCP\Template', true);
+ }
+
style('workflowengine', [
'admin',
]);