Merge pull request #925 from nextcloud/use-util-methods

Load the Template class in case it's not loaded
pull/945/head
Morris Jobke 2016-08-18 16:41:07 +07:00 committed by GitHub
commit ab5bd81020
1 changed files with 5 additions and 3 deletions

@ -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',
]);