diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-08-18 17:38:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-18 17:38:55 +0300 |
commit | 0f926e03bdf7738d9db733f296836d3311dbdd3e (patch) | |
tree | 877d8c4b87e6dd78a21d0a40fd8d2ab85d929a22 | |
parent | f68d5d1071925c948e904b8a6c15177f8621745a (diff) | |
parent | 93a3b7bb1891baef04227778f4b9dcf2056e0e37 (diff) |
Merge pull request #926 from nextcloud/backport-925-use-util-methods
[stable10] Load the Template class in case it's not loaded
-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', ]); |