Merge pull request #926 from nextcloud/backport-925-use-util-methods
[stable10] Load the Template class in case it's not loaded
This commit is contained in:
commit
0f926e03bd
|
@ -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',
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue