aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/module/module.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-05-02 14:03:12 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-05-02 14:03:12 +0000
commit33d059072ac4645572b20ca4f66d72fed15dba0c (patch)
tree5e026dfb318fb6788127ee306fcc7a783a91e0c7 /app/controllers/module/module.php
parent84baca6bd6cf7cfc8df14254fcccf22c2127abb4 (diff)
fix sql error when diffing mvv entities and adjust cache location, fixes #999
Closes #999
Diffstat (limited to 'app/controllers/module/module.php')
-rw-r--r--app/controllers/module/module.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/module/module.php b/app/controllers/module/module.php
index b05f097..449254a 100644
--- a/app/controllers/module/module.php
+++ b/app/controllers/module/module.php
@@ -1118,6 +1118,9 @@ class Module_ModuleController extends MVVController
$type_old = 2;
}
+ $diff_config = new Caxy\HtmlDiff\HtmlDiffConfig();
+ $diff_config->setPurifierCacheLocation($GLOBALS['TMP_PATH']);
+
PageLayout::setTitle(_('Vergleichsansicht'));
PageLayout::addStylesheet('print.css');
$factory = $this->get_template_factory();
@@ -1128,7 +1131,8 @@ class Module_ModuleController extends MVVController
'old_module' => $old_module,
'type_new' => $type_new,
'type_old' => $type_old,
- 'plugin' => $this->plugin
+ 'plugin' => $this->plugin,
+ 'diff_config' => $diff_config,
]);
$this->render_text($template->render());