diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-08-18 16:41:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-18 16:41:07 +0200 |
commit | ab5bd8102086f038f304f75559c6bb336dfcd0f6 (patch) | |
tree | 9e9194e8a9119542b39049e160298e35750cfc04 /apps | |
parent | 3b6bbf81591c6b35981d78895d656d9499d1ecd3 (diff) | |
parent | b4313f1969e588885406a7891fddaebff8a00776 (diff) | |
download | nextcloud-server-ab5bd8102086f038f304f75559c6bb336dfcd0f6.tar.gz nextcloud-server-ab5bd8102086f038f304f75559c6bb336dfcd0f6.zip |
Merge pull request #925 from nextcloud/use-util-methods
Load the Template class in case it's not loaded
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/AppInfo/Application.php | 8 |
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', ]); |